diff options
author | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-30 04:55:53 +0100 |
---|---|---|
committer | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-31 01:19:04 +0100 |
commit | aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3 (patch) | |
tree | c81ca46885ca977a8fc70cf3f3d04510285f3e01 /src/video_core/renderer_opengl/gl_state.h | |
parent | Merge pull request #1624 from lioncash/boost (diff) | |
download | yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar.gz yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar.bz2 yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar.lz yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar.xz yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.tar.zst yuzu-aca218aea00bc6ae2245bb0f0ba8d8dadfc645c3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 9e2c573b5..fe648aff6 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -173,7 +173,8 @@ public: } /// Apply this state as the current OpenGL state void Apply() const; - + /// Set the initial OpenGL state + static void ApplyDefaultState(); /// Resets any references to the given resource OpenGLState& UnbindTexture(GLuint handle); OpenGLState& ResetSampler(GLuint handle); @@ -188,6 +189,16 @@ private: // Workaround for sRGB problems caused by // QT not supporting srgb output static bool s_rgb_used; + void ApplySRgb() const; + void ApplyCulling() const; + void ApplyDepth() const; + void ApplyPrimitiveRestart() const; + void ApplyStencilTest() const; + void ApplyScissorTest() const; + void ApplyBlending() const; + void ApplyLogicOp() const; + void ApplyTextures() const; + void ApplySamplers() const; }; } // namespace OpenGL |