53d5736420
Renderstate now also handles the Frambuffer binding.
23 lines
468 B
C++
23 lines
468 B
C++
#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);
|
|
bool BindBuffer(GLint buffer);
|
|
private:
|
|
std::vector<GLenum> m_Enables;
|
|
float m_preClearColor[4];
|
|
int m_preBuffer;
|
|
};
|
|
#endif |