]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/OpenGL/Renderer2D.h
806d1e7cd28682806743cc3d7cc019fd1a56c969
[irrlicht.git] / source / Irrlicht / OpenGL / Renderer2D.h
1 // Copyright (C) 2014 Patryk Nadrowski\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in Irrlicht.h\r
4 \r
5 #pragma once\r
6 \r
7 #include "MaterialRenderer.h"\r
8 \r
9 namespace irr\r
10 {\r
11 namespace video\r
12 {\r
13 \r
14 class COpenGL3Renderer2D : public COpenGL3MaterialRenderer\r
15 {\r
16 public:\r
17         COpenGL3Renderer2D(const c8* vertexShaderProgram, const c8* pixelShaderProgram, COpenGL3DriverBase* driver, bool withTexture);\r
18         ~COpenGL3Renderer2D();\r
19 \r
20         virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,\r
21                 bool resetAllRenderstates, IMaterialRendererServices* services);\r
22 \r
23         virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype);\r
24 \r
25 protected:\r
26         bool WithTexture;\r
27         s32 ThicknessID;\r
28         s32 TextureUsageID;\r
29 };\r
30 \r
31 \r
32 }\r
33 }\r