diff options
| author | Ray <[email protected]> | 2022-11-15 12:34:01 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-11-15 12:34:01 +0100 |
| commit | e6306e5e76f83c9cf0b2bfbb85ceffa4ed2926ee (patch) | |
| tree | 39a3442f39faf5df44ce6aa18daaf35d66a48057 /src/rlgl.h | |
| parent | 2761aa40dd7213e9ace68eb5f0aa82d8e505edcc (diff) | |
| download | raylib-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.h | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -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; } } |
