|
|
@ -158,6 +158,8 @@ public: |
|
|
GLenum depth_mode = GL_NEGATIVE_ONE_TO_ONE; |
|
|
GLenum depth_mode = GL_NEGATIVE_ONE_TO_ONE; |
|
|
} clip_control; |
|
|
} clip_control; |
|
|
|
|
|
|
|
|
|
|
|
GLuint renderbuffer{}; // GL_RENDERBUFFER_BINDING |
|
|
|
|
|
|
|
|
OpenGLState(); |
|
|
OpenGLState(); |
|
|
|
|
|
|
|
|
/// Get the currently active OpenGL state |
|
|
/// Get the currently active OpenGL state |
|
|
@ -196,6 +198,7 @@ public: |
|
|
void ApplyPolygonOffset(); |
|
|
void ApplyPolygonOffset(); |
|
|
void ApplyAlphaTest(); |
|
|
void ApplyAlphaTest(); |
|
|
void ApplyClipControl(); |
|
|
void ApplyClipControl(); |
|
|
|
|
|
void ApplyRenderBuffer(); |
|
|
|
|
|
|
|
|
/// Resets any references to the given resource |
|
|
/// Resets any references to the given resource |
|
|
OpenGLState& UnbindTexture(GLuint handle); |
|
|
OpenGLState& UnbindTexture(GLuint handle); |
|
|
@ -204,6 +207,7 @@ public: |
|
|
OpenGLState& ResetPipeline(GLuint handle); |
|
|
OpenGLState& ResetPipeline(GLuint handle); |
|
|
OpenGLState& ResetVertexArray(GLuint handle); |
|
|
OpenGLState& ResetVertexArray(GLuint handle); |
|
|
OpenGLState& ResetFramebuffer(GLuint handle); |
|
|
OpenGLState& ResetFramebuffer(GLuint handle); |
|
|
|
|
|
OpenGLState& ResetRenderbuffer(GLuint handle); |
|
|
|
|
|
|
|
|
/// Viewport does not affects glClearBuffer so emulate viewport using scissor test |
|
|
/// Viewport does not affects glClearBuffer so emulate viewport using scissor test |
|
|
void EmulateViewportWithScissor(); |
|
|
void EmulateViewportWithScissor(); |
|
|
|