Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-17 01:34:06 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-18 22:30:10 +0300
commit482a51aabf596ca1f279ab3b7cb3170c867b4a42 (patch)
tree67a240114877d3b01f9aba3e0d33cf0c7364ba88 /source/blender/gpu/opengl/gl_state.hh
parentd10f000322914edf83ace36ee2abb2479c2b533b (diff)
Cleanup: GPUState: Remove stack from the state manager and rename it
Diffstat (limited to 'source/blender/gpu/opengl/gl_state.hh')
-rw-r--r--source/blender/gpu/opengl/gl_state.hh11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/gpu/opengl/gl_state.hh b/source/blender/gpu/opengl/gl_state.hh
index 577e8f9eb1c..5b8e687425d 100644
--- a/source/blender/gpu/opengl/gl_state.hh
+++ b/source/blender/gpu/opengl/gl_state.hh
@@ -31,18 +31,17 @@
namespace blender {
namespace gpu {
-class GLStateStack : public GPUStateStack {
+class GLStateManager : public GPUStateManager {
private:
/** Current state of the GL implementation. Avoids resetting the whole state for every change. */
GPUState current_;
GPUStateMutable current_mutable_;
public:
- void set_state(GPUState &state) override;
- void set_mutable_state(GPUStateMutable &state) override;
+ void set_state(const GPUState &state) override;
+ void set_mutable_state(const GPUStateMutable &state) override;
- public:
- /* TODO to become private */
+ private:
static void set_write_mask(const eGPUWriteMask value);
static void set_depth_test(const eGPUDepthTest value);
static void set_stencil_test(const eGPUStencilTest test, const eGPUStencilOp operation);
@@ -55,7 +54,7 @@ class GLStateStack : public GPUStateStack {
static void set_shadow_bias(const bool enable);
static void set_blend(const eGPUBlend value);
- MEM_CXX_CLASS_ALLOC_FUNCS("GLStateStack")
+ MEM_CXX_CLASS_ALLOC_FUNCS("GLStateManager")
};
} // namespace gpu