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
9 #ifdef _IRR_COMPILE_WITH_OPENGL_
\r
11 #include "COpenGLCommon.h"
\r
13 #include "COpenGLCoreFeature.h"
\r
14 #include "COpenGLCoreTexture.h"
\r
15 #include "COpenGLCoreCacheHandler.h"
\r
22 class COpenGLCacheHandler : public COpenGLCoreCacheHandler<COpenGLDriver, COpenGLTexture>
\r
25 COpenGLCacheHandler(COpenGLDriver* driver);
\r
26 virtual ~COpenGLCacheHandler();
\r
30 void setAlphaFunc(GLenum mode, GLclampf ref);
\r
32 void setAlphaTest(bool enable);
\r
34 // Client state calls.
\r
36 void setClientState(bool vertex, bool normal, bool color, bool texCoord0);
\r
40 void setMatrixMode(GLenum mode);
\r
44 void setClientActiveTexture(GLenum texture);
\r
53 GLenum ClientActiveTexture;
\r
55 bool ClientStateVertex;
\r
56 bool ClientStateNormal;
\r
57 bool ClientStateColor;
\r
58 bool ClientStateTexCoord0;
\r
61 } // end namespace video
\r
62 } // end namespace irr
\r
64 #endif // _IRR_COMPILE_WITH_OPENGL_
\r