Skip to content

Commit 8f32c50

Browse files
committed
REVIEWED: Code sections definition
1 parent b6ae380 commit 8f32c50

File tree

10 files changed

+19
-25
lines changed

10 files changed

+19
-25
lines changed

src/platforms/rcore_desktop_sdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extern CoreData CORE; // Global CORE state context
111111
static PlatformData platform = { 0 }; // Platform specific data
112112

113113
//----------------------------------------------------------------------------------
114-
// Local Variables Definition
114+
// Global Variables Definition
115115
//----------------------------------------------------------------------------------
116116
#define SCANCODE_MAPPED_NUM 232
117117
static const KeyboardKey mapScancodeToKey[SCANCODE_MAPPED_NUM] = {

src/platforms/rcore_drm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extern CoreData CORE; // Global CORE state context
156156
static PlatformData platform = { 0 }; // Platform specific data
157157

158158
//----------------------------------------------------------------------------------
159-
// Local Variables Definition
159+
// Global Variables Definition
160160
//----------------------------------------------------------------------------------
161161

162162
// NOTE: The complete evdev EV_KEY list can be found at /usr/include/linux/input-event-codes.h

src/platforms/rcore_web.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern CoreData CORE; // Global CORE state context
8686
static PlatformData platform = { 0 }; // Platform specific data
8787

8888
//----------------------------------------------------------------------------------
89-
// Local Variables Definition
89+
// Global Variables Definition
9090
//----------------------------------------------------------------------------------
9191
static const char cursorLUT[11][12] = {
9292
"default", // 0 MOUSE_CURSOR_DEFAULT

src/raudio.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ static AudioData AUDIO = { // Global AUDIO context
407407
};
408408

409409
//----------------------------------------------------------------------------------
410-
// Module specific Functions Declaration
410+
// Module Internal Functions Declaration
411411
//----------------------------------------------------------------------------------
412412
static void OnLog(void *pUserData, ma_uint32 level, const char *pMessage);
413413

@@ -2352,9 +2352,8 @@ void DetachAudioMixedProcessor(AudioCallback process)
23522352
}
23532353

23542354
//----------------------------------------------------------------------------------
2355-
// Module specific Functions Definition
2355+
// Module Internal Functions Definition
23562356
//----------------------------------------------------------------------------------
2357-
23582357
// Log callback function
23592358
static void OnLog(void *pUserData, ma_uint32 level, const char *pMessage)
23602359
{

src/raylib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
#endif
116116

117117
//----------------------------------------------------------------------------------
118-
// Some basic Defines
118+
// Defines and Macros
119119
//----------------------------------------------------------------------------------
120120
#ifndef PI
121121
#define PI 3.14159265358979323846f
@@ -201,7 +201,7 @@
201201
#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo)
202202

203203
//----------------------------------------------------------------------------------
204-
// Structures Definition
204+
// Types and Structures Definition
205205
//----------------------------------------------------------------------------------
206206
// Boolean type
207207
#if (defined(__STDC__) && __STDC_VERSION__ >= 199901L) || (defined(_MSC_VER) && _MSC_VER >= 1800)

src/rlgl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ RLAPI void rlLoadDrawQuad(void); // Load and draw a quad
10391039
#endif
10401040

10411041
//----------------------------------------------------------------------------------
1042-
// Types and Structures Definition
1042+
// Module Types and Structures Definition
10431043
//----------------------------------------------------------------------------------
10441044
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
10451045

@@ -1145,7 +1145,7 @@ static PFNGLVERTEXATTRIBDIVISOREXTPROC glVertexAttribDivisor = NULL;
11451145
#endif
11461146

11471147
//----------------------------------------------------------------------------------
1148-
// Module specific Functions Declaration
1148+
// Module Functions Declaration
11491149
//----------------------------------------------------------------------------------
11501150
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
11511151
static void rlLoadShaderDefault(void); // Load default shader
@@ -4864,7 +4864,7 @@ const char *rlGetPixelFormatName(unsigned int format)
48644864
}
48654865

48664866
//----------------------------------------------------------------------------------
4867-
// Module specific Functions Definition
4867+
// Module Functions Definition
48684868
//----------------------------------------------------------------------------------
48694869
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
48704870
// Load default shader (just vertex positioning and texture coloring)

src/rmodels.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
// ...
145145

146146
//----------------------------------------------------------------------------------
147-
// Module specific Functions Declaration
147+
// Module Internal Functions Declaration
148148
//----------------------------------------------------------------------------------
149149
#if defined(SUPPORT_FILEFORMAT_OBJ)
150150
static Model LoadOBJ(const char *fileName); // Load OBJ mesh data
@@ -171,7 +171,6 @@ static void ProcessMaterialsOBJ(Material *rayMaterials, tinyobj_material_t *mate
171171
//----------------------------------------------------------------------------------
172172
// Module Functions Definition
173173
//----------------------------------------------------------------------------------
174-
175174
// Draw a line in 3D world space
176175
void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
177176
{
@@ -4244,7 +4243,7 @@ RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Ve
42444243
}
42454244

42464245
//----------------------------------------------------------------------------------
4247-
// Module specific Functions Definition
4246+
// Module Internal Functions Definition
42484247
//----------------------------------------------------------------------------------
42494248
#if defined(SUPPORT_FILEFORMAT_IQM) || defined(SUPPORT_FILEFORMAT_GLTF)
42504249
// Build pose from parent joints

src/rshapes.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ static Texture2D texShapes = { 1, 1, 1, 1, 7 }; // Texture used o
8383
static Rectangle texShapesRec = { 0.0f, 0.0f, 1.0f, 1.0f }; // Texture source rectangle used on shapes drawing
8484

8585
//----------------------------------------------------------------------------------
86-
// Module specific Functions Declaration
86+
// Module Internal Functions Declaration
8787
//----------------------------------------------------------------------------------
8888
static float EaseCubicInOut(float t, float b, float c, float d); // Cubic easing
8989

9090
//----------------------------------------------------------------------------------
9191
// Module Functions Definition
9292
//----------------------------------------------------------------------------------
93-
9493
// Set texture and rectangle to be used on shapes drawing
9594
// NOTE: It can be useful when using basic shapes and one single font,
9695
// defining a font char white rectangle would allow drawing everything in a single draw call
@@ -2371,7 +2370,7 @@ bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshol
23712370
}
23722371

23732372
// Check if circle collides with a line created between two points [p1] and [p2]
2374-
RLAPI bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2)
2373+
bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2)
23752374
{
23762375
float dx = p1.x - p2.x;
23772376
float dy = p1.y - p2.y;
@@ -2420,7 +2419,7 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)
24202419
}
24212420

24222421
//----------------------------------------------------------------------------------
2423-
// Module specific Functions Definition
2422+
// Module Internal Functions Definition
24242423
//----------------------------------------------------------------------------------
24252424

24262425
// Cubic easing in-out

src/rtext.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int textLineSpacing = 2; // Text vertical line spacing in
141141
//...
142142

143143
//----------------------------------------------------------------------------------
144-
// Module specific Functions Declaration
144+
// Module Internal Functions Declaration
145145
//----------------------------------------------------------------------------------
146146
#if defined(SUPPORT_FILEFORMAT_FNT)
147147
static Font LoadBMFont(const char *fileName); // Load a BMFont file (AngelCode font file)
@@ -2197,7 +2197,7 @@ int GetCodepointPrevious(const char *text, int *codepointSize)
21972197
}
21982198

21992199
//----------------------------------------------------------------------------------
2200-
// Module specific Functions Definition
2200+
// Module Internal Functions Definition
22012201
//----------------------------------------------------------------------------------
22022202
#if defined(SUPPORT_FILEFORMAT_FNT) || defined(SUPPORT_FILEFORMAT_BDF)
22032203
// Read a line from memory
@@ -2380,11 +2380,9 @@ static Font LoadBMFont(const char *fileName)
23802380

23812381
return font;
23822382
}
2383-
23842383
#endif
23852384

23862385
#if defined(SUPPORT_FILEFORMAT_BDF)
2387-
23882386
// Convert hexadecimal to decimal (single digit)
23892387
static unsigned char HexToInt(char hex)
23902388
{

src/rtextures.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
extern void LoadFontDefault(void); // [Module: text] Loads default font, required by ImageDrawText()
259259

260260
//----------------------------------------------------------------------------------
261-
// Module specific Functions Declaration
261+
// Module Internal Functions Declaration
262262
//----------------------------------------------------------------------------------
263263
static float HalfToFloat(unsigned short x);
264264
static unsigned short FloatToHalf(float x);
@@ -267,7 +267,6 @@ static Vector4 *LoadImageDataNormalized(Image image); // Load pixel data f
267267
//----------------------------------------------------------------------------------
268268
// Module Functions Definition
269269
//----------------------------------------------------------------------------------
270-
271270
// Load image from file into CPU memory (RAM)
272271
Image LoadImage(const char *fileName)
273272
{
@@ -5406,7 +5405,7 @@ int GetPixelDataSize(int width, int height, int format)
54065405
}
54075406

54085407
//----------------------------------------------------------------------------------
5409-
// Module specific Functions Definition
5408+
// Module Internal Functions Definition
54105409
//----------------------------------------------------------------------------------
54115410
// Convert half-float (stored as unsigned short) to float
54125411
// REF: https://stackoverflow.com/questions/1659440/32-bit-to-16-bit-floating-point-conversion/60047308#60047308

0 commit comments

Comments
 (0)