summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2022-11-15 12:34:01 +0100
committerRay <[email protected]>2022-11-15 12:34:01 +0100
commite6306e5e76f83c9cf0b2bfbb85ceffa4ed2926ee (patch)
tree39a3442f39faf5df44ce6aa18daaf35d66a48057 /src/rlgl.h
parent2761aa40dd7213e9ace68eb5f0aa82d8e505edcc (diff)
downloadraylib-e6306e5e76f83c9cf0b2bfbb85ceffa4ed2926ee.tar.gz
raylib-e6306e5e76f83c9cf0b2bfbb85ceffa4ed2926ee.zip
REVIEWED: `rlCullFace()` -> `rlSetCullFace()`
Reviewed formating to follow raylib coding conventions.
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index eb6f9afe..edd74862 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -500,8 +500,8 @@ typedef enum {
// Face culling mode
typedef enum {
- RL_FRONT = 0,
- RL_BACK
+ RL_CULL_FACE_FRONT = 0,
+ RL_CULL_FACE_BACK
} rlCullMode;
//------------------------------------------------------------------------------------
@@ -584,7 +584,7 @@ RLAPI void rlEnableDepthMask(void); // Enable depth write
RLAPI void rlDisableDepthMask(void); // Disable depth write
RLAPI void rlEnableBackfaceCulling(void); // Enable backface culling
RLAPI void rlDisableBackfaceCulling(void); // Disable backface culling
-RLAPI void rlCullFace(rlCullMode mode); // Set face culling mode
+RLAPI void rlSetCullFace(int mode); // Set face culling mode
RLAPI void rlEnableScissorTest(void); // Enable scissor test
RLAPI void rlDisableScissorTest(void); // Disable scissor test
RLAPI void rlScissor(int x, int y, int width, int height); // Scissor test
@@ -1679,14 +1679,13 @@ void rlEnableBackfaceCulling(void) { glEnable(GL_CULL_FACE); }
void rlDisableBackfaceCulling(void) { glDisable(GL_CULL_FACE); }
// Set face culling mode
-void rlCullFace(rlCullMode mode) {
- switch (mode) {
- case RL_BACK:
- glCullFace(GL_BACK);
- break;
- case RL_FRONT:
- glCullFace(GL_FRONT);
- break;
+void rlSetCullFace(int mode)
+{
+ switch (mode)
+ {
+ case RL_CULL_FACE_BACK: glCullFace(GL_BACK); break;
+ case RL_CULL_FACE_FRONT: glCullFace(GL_FRONT); break;
+ default: break;
}
}