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