From f15455552da353dfb7055b6fa020ba73d71de88e Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 23 Apr 2024 19:38:45 +0200 Subject: [PATCH] Review formatting --- src/rlgl.h | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index 137dcd20f..9477558c8 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -559,10 +559,6 @@ typedef enum { extern "C" { // Prevents name mangling of functions #endif -RLAPI void rlSetClipPlanes(double near, double far); -RLAPI double rlGetCullDistanceNear(); -RLAPI double rlGetCullDistanceFar(); - RLAPI void rlMatrixMode(int mode); // Choose the current matrix to be transformed RLAPI void rlPushMatrix(void); // Push the current matrix to stack RLAPI void rlPopMatrix(void); // Pop latest inserted matrix from stack @@ -574,6 +570,9 @@ RLAPI void rlMultMatrixf(const float *matf); // Multiply the current RLAPI void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar); RLAPI void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar); RLAPI void rlViewport(int x, int y, int width, int height); // Set the viewport area +RLAPI void rlSetClipPlanes(double near, double far); // Set clip planes distances +RLAPI double rlGetCullDistanceNear(); // Get cull plane distance near +RLAPI double rlGetCullDistanceFar(); // Get cull plane distance far //------------------------------------------------------------------------------------ // Functions Declaration - Vertex level operations @@ -1087,7 +1086,6 @@ typedef void *(*rlglLoadProc)(const char *name); // OpenGL extension functions //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- - static double rlCullDistanceNear = RL_CULL_DISTANCE_NEAR; static double rlCullDistanceFar = RL_CULL_DISTANCE_FAR; @@ -1135,22 +1133,6 @@ static Matrix rlMatrixInvert(Matrix mat); // Invert provided m // Module Functions Definition - Matrix operations //---------------------------------------------------------------------------------- -void rlSetClipPlanes(double near, double far) -{ - rlCullDistanceNear = near; - rlCullDistanceFar = far; -} - -double rlGetCullDistanceFar() -{ - return rlCullDistanceFar; -} - -double rlGetCullDistanceNear() -{ - return rlCullDistanceNear; -} - #if defined(GRAPHICS_API_OPENGL_11) // Fallback to OpenGL 1.1 function calls //--------------------------------------- @@ -1388,6 +1370,25 @@ void rlViewport(int x, int y, int width, int height) glViewport(x, y, width, height); } +// Set clip planes distances +void rlSetClipPlanes(double near, double far) +{ + rlCullDistanceNear = near; + rlCullDistanceFar = far; +} + +// Get cull plane distance near +double rlGetCullDistanceNear(void) +{ + return rlCullDistanceNear; +} + +// Get cull plane distance far +double rlGetCullDistanceFar(void) +{ + return rlCullDistanceFar; +} + //---------------------------------------------------------------------------------- // Module Functions Definition - Vertex level operations //----------------------------------------------------------------------------------