mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-17 08:48:14 +00:00
REVIEWED: Code sections description for consistency
This commit is contained in:
@@ -109,7 +109,7 @@ void UpdateLightValues(Shader shader, Light light); // Send light proper
|
|||||||
static int lightsCount = 0; // Current amount of created lights
|
static int lightsCount = 0; // Current amount of created lights
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ void UpdateLightValues(Shader shader, Light light); // Send light proper
|
|||||||
static int lightsCount = 0; // Current amount of created lights
|
static int lightsCount = 0; // Current amount of created lights
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
|
@@ -1480,7 +1480,7 @@ static void DrawRectangleGradientV(int posX, int posY, int width, int height, Co
|
|||||||
#endif // RAYGUI_STANDALONE
|
#endif // RAYGUI_STANDALONE
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize); // Load style from memory (binary only)
|
static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize); // Load style from memory (binary only)
|
||||||
|
|
||||||
@@ -4479,7 +4479,7 @@ void GuiSetIconScale(int scale)
|
|||||||
#endif // !RAYGUI_NO_ICONS
|
#endif // !RAYGUI_NO_ICONS
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Load style from memory
|
// Load style from memory
|
||||||
|
6
src/external/rprand.h
vendored
6
src/external/rprand.h
vendored
@@ -156,13 +156,13 @@ static uint32_t rprand_state[4] = { // Xoshiro128** state, initializ
|
|||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module internal functions declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
static uint32_t rprand_xoshiro(void); // Xoshiro128** generator (uses global rprand_state)
|
static uint32_t rprand_xoshiro(void); // Xoshiro128** generator (uses global rprand_state)
|
||||||
static uint64_t rprand_splitmix64(void); // SplitMix64 generator (uses seed to generate rprand_state)
|
static uint64_t rprand_splitmix64(void); // SplitMix64 generator (uses seed to generate rprand_state)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module functions definition
|
// Module Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Set rprand_state for Xoshiro128**
|
// Set rprand_state for Xoshiro128**
|
||||||
// NOTE: We use a custom generation algorithm using SplitMix64
|
// NOTE: We use a custom generation algorithm using SplitMix64
|
||||||
@@ -236,7 +236,7 @@ void rprand_unload_sequence(int *sequence)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module internal functions definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
static inline uint32_t rprand_rotate_left(const uint32_t x, int k)
|
static inline uint32_t rprand_rotate_left(const uint32_t x, int k)
|
||||||
{
|
{
|
||||||
|
@@ -216,7 +216,7 @@ RLAPI Matrix GetCameraProjectionMatrix(Camera *camera, float aspect);
|
|||||||
//...
|
//...
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
//...
|
//...
|
||||||
|
|
||||||
|
@@ -238,7 +238,7 @@ static GesturesData GESTURES = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
static float rgVector2Angle(Vector2 initialPosition, Vector2 finalPosition);
|
static float rgVector2Angle(Vector2 initialPosition, Vector2 finalPosition);
|
||||||
static float rgVector2Distance(Vector2 v1, Vector2 v2);
|
static float rgVector2Distance(Vector2 v1, Vector2 v2);
|
||||||
@@ -481,7 +481,7 @@ float GetGesturePinchAngle(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Get angle from two-points vector with X-axis
|
// Get angle from two-points vector with X-axis
|
||||||
static float rgVector2Angle(Vector2 v1, Vector2 v2)
|
static float rgVector2Angle(Vector2 v1, Vector2 v2)
|
||||||
|
@@ -82,7 +82,7 @@ static const char *internalDataPath = NULL; // Android internal data pat
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
FILE *funopen(const void *cookie, int (*readfn)(void *, char *, int), int (*writefn)(void *, const char *, int),
|
FILE *funopen(const void *cookie, int (*readfn)(void *, char *, int), int (*writefn)(void *, const char *, int),
|
||||||
@@ -482,7 +482,7 @@ FILE *android_fopen(const char *fileName, const char *mode)
|
|||||||
#endif // PLATFORM_ANDROID
|
#endif // PLATFORM_ANDROID
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific Functions Definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
static int android_read(void *cookie, char *data, int dataSize)
|
static int android_read(void *cookie, char *data, int dataSize)
|
||||||
|
@@ -129,7 +129,7 @@ static const char *exCollectionFilePath = NULL; // Env: REXM_EXAMPLES_COLLECTION
|
|||||||
static const char *exVSProjectSolutionFile = NULL; // Env REXM_EXAMPLES_VS2022_SLN_FILE
|
static const char *exVSProjectSolutionFile = NULL; // Env REXM_EXAMPLES_VS2022_SLN_FILE
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific functions declaration
|
// Module Internal Functions Declaration
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
static int FileTextFind(const char *fileName, const char *find);
|
static int FileTextFind(const char *fileName, const char *find);
|
||||||
static int FileTextReplace(const char *fileName, const char *find, const char *replace);
|
static int FileTextReplace(const char *fileName, const char *find, const char *replace);
|
||||||
@@ -1283,9 +1283,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module specific functions definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Update required files from examples collection
|
// Update required files from examples collection
|
||||||
static int UpdateRequiredFiles(void)
|
static int UpdateRequiredFiles(void)
|
||||||
{
|
{
|
||||||
@@ -1772,7 +1771,7 @@ static int FileMove(const char *srcPath, const char *dstPath)
|
|||||||
|
|
||||||
// Get example info from example file header
|
// Get example info from example file header
|
||||||
// NOTE: Expecting the example to follow raylib_example_template.c
|
// NOTE: Expecting the example to follow raylib_example_template.c
|
||||||
rlExampleInfo *LoadExampleInfo(const char *exFileName)
|
static rlExampleInfo *LoadExampleInfo(const char *exFileName)
|
||||||
{
|
{
|
||||||
rlExampleInfo *exInfo = (rlExampleInfo *)RL_CALLOC(1, sizeof(rlExampleInfo));
|
rlExampleInfo *exInfo = (rlExampleInfo *)RL_CALLOC(1, sizeof(rlExampleInfo));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user