Skip to content

Commit e6306e5

Browse files
committed
REVIEWED: rlCullFace() -> rlSetCullFace()
Reviewed formating to follow raylib coding conventions.
1 parent 2761aa4 commit e6306e5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/rlgl.h

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ typedef enum {
500500

501501
// Face culling mode
502502
typedef enum {
503-
RL_FRONT = 0,
504-
RL_BACK
503+
RL_CULL_FACE_FRONT = 0,
504+
RL_CULL_FACE_BACK
505505
} rlCullMode;
506506

507507
//------------------------------------------------------------------------------------
@@ -584,7 +584,7 @@ RLAPI void rlEnableDepthMask(void); // Enable depth write
584584
RLAPI void rlDisableDepthMask(void); // Disable depth write
585585
RLAPI void rlEnableBackfaceCulling(void); // Enable backface culling
586586
RLAPI void rlDisableBackfaceCulling(void); // Disable backface culling
587-
RLAPI void rlCullFace(rlCullMode mode); // Set face culling mode
587+
RLAPI void rlSetCullFace(int mode); // Set face culling mode
588588
RLAPI void rlEnableScissorTest(void); // Enable scissor test
589589
RLAPI void rlDisableScissorTest(void); // Disable scissor test
590590
RLAPI void rlScissor(int x, int y, int width, int height); // Scissor test
@@ -1679,14 +1679,13 @@ void rlEnableBackfaceCulling(void) { glEnable(GL_CULL_FACE); }
16791679
void rlDisableBackfaceCulling(void) { glDisable(GL_CULL_FACE); }
16801680

16811681
// Set face culling mode
1682-
void rlCullFace(rlCullMode mode) {
1683-
switch (mode) {
1684-
case RL_BACK:
1685-
glCullFace(GL_BACK);
1686-
break;
1687-
case RL_FRONT:
1688-
glCullFace(GL_FRONT);
1689-
break;
1682+
void rlSetCullFace(int mode)
1683+
{
1684+
switch (mode)
1685+
{
1686+
case RL_CULL_FACE_BACK: glCullFace(GL_BACK); break;
1687+
case RL_CULL_FACE_FRONT: glCullFace(GL_FRONT); break;
1688+
default: break;
16901689
}
16911690
}
16921691

0 commit comments

Comments
 (0)