@@ -559,10 +559,6 @@ typedef enum {
559
559
extern "C" { // Prevents name mangling of functions
560
560
#endif
561
561
562
- RLAPI void rlSetClipPlanes (double near , double far );
563
- RLAPI double rlGetCullDistanceNear ();
564
- RLAPI double rlGetCullDistanceFar ();
565
-
566
562
RLAPI void rlMatrixMode (int mode ); // Choose the current matrix to be transformed
567
563
RLAPI void rlPushMatrix (void ); // Push the current matrix to stack
568
564
RLAPI void rlPopMatrix (void ); // Pop latest inserted matrix from stack
@@ -574,6 +570,9 @@ RLAPI void rlMultMatrixf(const float *matf); // Multiply the current
574
570
RLAPI void rlFrustum (double left , double right , double bottom , double top , double znear , double zfar );
575
571
RLAPI void rlOrtho (double left , double right , double bottom , double top , double znear , double zfar );
576
572
RLAPI void rlViewport (int x , int y , int width , int height ); // Set the viewport area
573
+ RLAPI void rlSetClipPlanes (double near , double far ); // Set clip planes distances
574
+ RLAPI double rlGetCullDistanceNear (); // Get cull plane distance near
575
+ RLAPI double rlGetCullDistanceFar (); // Get cull plane distance far
577
576
578
577
//------------------------------------------------------------------------------------
579
578
// Functions Declaration - Vertex level operations
@@ -1087,7 +1086,6 @@ typedef void *(*rlglLoadProc)(const char *name); // OpenGL extension functions
1087
1086
//----------------------------------------------------------------------------------
1088
1087
// Global Variables Definition
1089
1088
//----------------------------------------------------------------------------------
1090
-
1091
1089
static double rlCullDistanceNear = RL_CULL_DISTANCE_NEAR ;
1092
1090
static double rlCullDistanceFar = RL_CULL_DISTANCE_FAR ;
1093
1091
@@ -1135,22 +1133,6 @@ static Matrix rlMatrixInvert(Matrix mat); // Invert provided m
1135
1133
// Module Functions Definition - Matrix operations
1136
1134
//----------------------------------------------------------------------------------
1137
1135
1138
- void rlSetClipPlanes (double near , double far )
1139
- {
1140
- rlCullDistanceNear = near ;
1141
- rlCullDistanceFar = far ;
1142
- }
1143
-
1144
- double rlGetCullDistanceFar ()
1145
- {
1146
- return rlCullDistanceFar ;
1147
- }
1148
-
1149
- double rlGetCullDistanceNear ()
1150
- {
1151
- return rlCullDistanceNear ;
1152
- }
1153
-
1154
1136
#if defined(GRAPHICS_API_OPENGL_11 )
1155
1137
// Fallback to OpenGL 1.1 function calls
1156
1138
//---------------------------------------
@@ -1388,6 +1370,25 @@ void rlViewport(int x, int y, int width, int height)
1388
1370
glViewport (x , y , width , height );
1389
1371
}
1390
1372
1373
+ // Set clip planes distances
1374
+ void rlSetClipPlanes (double near , double far )
1375
+ {
1376
+ rlCullDistanceNear = near ;
1377
+ rlCullDistanceFar = far ;
1378
+ }
1379
+
1380
+ // Get cull plane distance near
1381
+ double rlGetCullDistanceNear (void )
1382
+ {
1383
+ return rlCullDistanceNear ;
1384
+ }
1385
+
1386
+ // Get cull plane distance far
1387
+ double rlGetCullDistanceFar (void )
1388
+ {
1389
+ return rlCullDistanceFar ;
1390
+ }
1391
+
1391
1392
//----------------------------------------------------------------------------------
1392
1393
// Module Functions Definition - Vertex level operations
1393
1394
//----------------------------------------------------------------------------------
0 commit comments