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-07-17 21:04:37 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-18 04:43:52 +0300
commit5993c53a6d36f4dc12910281be83021e45f76ac4 (patch)
treec342317e6f3b1a812ca52e67a1ecf161f2d110e0 /source/blender/gpu/GPU_state.h
parentc14e6cdd5660be471e559206cd5eacee85fa0981 (diff)
Cleanup: GPU: Encapsulate Backface culling
Diffstat (limited to 'source/blender/gpu/GPU_state.h')
-rw-r--r--source/blender/gpu/GPU_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h
index e6b002f211c..0a97016e06d 100644
--- a/source/blender/gpu/GPU_state.h
+++ b/source/blender/gpu/GPU_state.h
@@ -40,6 +40,12 @@ typedef enum eGPUFilterFunction {
GPU_LINEAR,
} eGPUFilterFunction;
+typedef enum eGPUFaceCull {
+ GPU_CULL_NONE = 0, /* Culling disabled. */
+ GPU_CULL_FRONT,
+ GPU_CULL_BACK,
+} eGPUFaceCull;
+
/* Initialize
* - sets the default Blender opengl state, if in doubt, check
* the contents of this function
@@ -52,6 +58,7 @@ void GPU_blend_set_func_separate(eGPUBlendFunction src_rgb,
eGPUBlendFunction dst_rgb,
eGPUBlendFunction src_alpha,
eGPUBlendFunction dst_alpha);
+void GPU_face_culling(eGPUFaceCull culling);
void GPU_depth_range(float near, float far);
void GPU_depth_test(bool enable);
bool GPU_depth_test_enabled(void);