File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -500,8 +500,8 @@ typedef enum {
500
500
501
501
// Face culling mode
502
502
typedef enum {
503
- RL_FRONT = 0 ,
504
- RL_BACK
503
+ RL_CULL_FACE_FRONT = 0 ,
504
+ RL_CULL_FACE_BACK
505
505
} rlCullMode ;
506
506
507
507
//------------------------------------------------------------------------------------
@@ -584,7 +584,7 @@ RLAPI void rlEnableDepthMask(void); // Enable depth write
584
584
RLAPI void rlDisableDepthMask (void ); // Disable depth write
585
585
RLAPI void rlEnableBackfaceCulling (void ); // Enable backface culling
586
586
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
588
588
RLAPI void rlEnableScissorTest (void ); // Enable scissor test
589
589
RLAPI void rlDisableScissorTest (void ); // Disable scissor test
590
590
RLAPI void rlScissor (int x , int y , int width , int height ); // Scissor test
@@ -1679,14 +1679,13 @@ void rlEnableBackfaceCulling(void) { glEnable(GL_CULL_FACE); }
1679
1679
void rlDisableBackfaceCulling (void ) { glDisable (GL_CULL_FACE ); }
1680
1680
1681
1681
// 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 ;
1690
1689
}
1691
1690
}
1692
1691
You can’t perform that action at this time.
0 commit comments