]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/COpenGLCacheHandler.h
f7d14c033dfb34a8c301380d212b0b625d18bbd4
[irrlicht.git] / source / Irrlicht / COpenGLCacheHandler.h
1 // Copyright (C) 2015 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 #ifndef __C_OPENGL_CACHE_HANDLER_H_INCLUDED__\r
6 #define __C_OPENGL_CACHE_HANDLER_H_INCLUDED__\r
7 \r
8 #include "IrrCompileConfig.h"\r
9 \r
10 #ifdef _IRR_COMPILE_WITH_OPENGL_\r
11 \r
12 #include "COpenGLCommon.h"\r
13 \r
14 #include "COpenGLCoreFeature.h"\r
15 #include "COpenGLCoreTexture.h"\r
16 #include "COpenGLCoreCacheHandler.h"\r
17 \r
18 namespace irr\r
19 {\r
20 namespace video\r
21 {\r
22 \r
23         class COpenGLCacheHandler : public COpenGLCoreCacheHandler<COpenGLDriver, COpenGLTexture>\r
24         {\r
25         public:\r
26                 COpenGLCacheHandler(COpenGLDriver* driver);\r
27                 virtual ~COpenGLCacheHandler();\r
28 \r
29                 // Alpha calls.\r
30 \r
31                 void setAlphaFunc(GLenum mode, GLclampf ref);\r
32 \r
33                 void setAlphaTest(bool enable);\r
34 \r
35                 // Client state calls.\r
36 \r
37                 void setClientState(bool vertex, bool normal, bool color, bool texCoord0);\r
38 \r
39                 // Matrix calls.\r
40 \r
41                 void setMatrixMode(GLenum mode);\r
42 \r
43                 // Texture calls.\r
44 \r
45                 void setClientActiveTexture(GLenum texture);\r
46 \r
47         protected:\r
48                 GLenum AlphaMode;\r
49                 GLclampf AlphaRef;\r
50                 bool AlphaTest;\r
51 \r
52                 GLenum MatrixMode;\r
53 \r
54                 GLenum ClientActiveTexture;\r
55 \r
56                 bool ClientStateVertex;\r
57                 bool ClientStateNormal;\r
58                 bool ClientStateColor;\r
59                 bool ClientStateTexCoord0;\r
60         };\r
61 \r
62 } // end namespace video\r
63 } // end namespace irr\r
64 \r
65 #endif // _IRR_COMPILE_WITH_OPENGL_\r
66 #endif\r