Skip to content

Commit f154555

Browse files
committed
Review formatting
1 parent 4b0e25d commit f154555

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

src/rlgl.h

+22-21
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,6 @@ typedef enum {
559559
extern "C" { // Prevents name mangling of functions
560560
#endif
561561

562-
RLAPI void rlSetClipPlanes(double near, double far);
563-
RLAPI double rlGetCullDistanceNear();
564-
RLAPI double rlGetCullDistanceFar();
565-
566562
RLAPI void rlMatrixMode(int mode); // Choose the current matrix to be transformed
567563
RLAPI void rlPushMatrix(void); // Push the current matrix to stack
568564
RLAPI void rlPopMatrix(void); // Pop latest inserted matrix from stack
@@ -574,6 +570,9 @@ RLAPI void rlMultMatrixf(const float *matf); // Multiply the current
574570
RLAPI void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar);
575571
RLAPI void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar);
576572
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
577576

578577
//------------------------------------------------------------------------------------
579578
// Functions Declaration - Vertex level operations
@@ -1087,7 +1086,6 @@ typedef void *(*rlglLoadProc)(const char *name); // OpenGL extension functions
10871086
//----------------------------------------------------------------------------------
10881087
// Global Variables Definition
10891088
//----------------------------------------------------------------------------------
1090-
10911089
static double rlCullDistanceNear = RL_CULL_DISTANCE_NEAR;
10921090
static double rlCullDistanceFar = RL_CULL_DISTANCE_FAR;
10931091

@@ -1135,22 +1133,6 @@ static Matrix rlMatrixInvert(Matrix mat); // Invert provided m
11351133
// Module Functions Definition - Matrix operations
11361134
//----------------------------------------------------------------------------------
11371135

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-
11541136
#if defined(GRAPHICS_API_OPENGL_11)
11551137
// Fallback to OpenGL 1.1 function calls
11561138
//---------------------------------------
@@ -1388,6 +1370,25 @@ void rlViewport(int x, int y, int width, int height)
13881370
glViewport(x, y, width, height);
13891371
}
13901372

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+
13911392
//----------------------------------------------------------------------------------
13921393
// Module Functions Definition - Vertex level operations
13931394
//----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)