diff options
author | greggameplayer <33609333+greggameplayer@users.noreply.github.com> | 2018-11-02 14:26:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 14:26:32 +0100 |
commit | cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe (patch) | |
tree | cedafffe5a605a1ed914e1d1df1267a3cd299fc9 /src/video_core/renderer_opengl/gl_state.h | |
parent | Implement SurfaceTarget Texture2DArray (diff) | |
parent | Merge pull request #1615 from lioncash/input (diff) | |
download | yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar.gz yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar.bz2 yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar.lz yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar.xz yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.tar.zst yuzu-cb8e4a46330ca23496c3a77f42d9d16dc26e0dbe.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-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 |