RenderState class structure made.

This commit is contained in:
Tleety
2015-12-10 16:03:48 +01:00
parent 9d3313e3ed
commit 37cf42527b
2 changed files with 103 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef RenderState_h__
#define RenderState_h__
#include "../Common.h"
#include "../OpenGL.h"
#include "../GLM.h"
class RenderState
{
public:
RenderState();
~RenderState();
bool Enable(GLenum GLEnable);
bool CullFace(GLenum GlFaceToCull);
bool ClearColor(glm::vec4 color);
bool Clear(GLbitfield mask);
private:
std::vector<GLenum> m_Enables;
float m_preClearColor[4];
GLenum m_preCullFace;
};
#endif