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
5 #ifndef __C_OPENGL_CACHE_HANDLER_H_INCLUDED__
\r
6 #define __C_OPENGL_CACHE_HANDLER_H_INCLUDED__
\r
8 #include "IrrCompileConfig.h"
\r
10 #ifdef _IRR_COMPILE_WITH_OPENGL_
\r
12 #include "COpenGLCommon.h"
\r
14 #include "COpenGLCoreFeature.h"
\r
15 #include "COpenGLCoreTexture.h"
\r
16 #include "COpenGLCoreCacheHandler.h"
\r
23 class COpenGLCacheHandler : public COpenGLCoreCacheHandler<COpenGLDriver, COpenGLTexture>
\r
26 COpenGLCacheHandler(COpenGLDriver* driver);
\r
27 virtual ~COpenGLCacheHandler();
\r
31 void setAlphaFunc(GLenum mode, GLclampf ref);
\r
33 void setAlphaTest(bool enable);
\r
35 // Client state calls.
\r
37 void setClientState(bool vertex, bool normal, bool color, bool texCoord0);
\r
41 void setMatrixMode(GLenum mode);
\r
45 void setClientActiveTexture(GLenum texture);
\r
54 GLenum ClientActiveTexture;
\r
56 bool ClientStateVertex;
\r
57 bool ClientStateNormal;
\r
58 bool ClientStateColor;
\r
59 bool ClientStateTexCoord0;
\r
62 } // end namespace video
\r
63 } // end namespace irr
\r
65 #endif // _IRR_COMPILE_WITH_OPENGL_
\r