From d4f636151b2d1e27249d4fe7859f11d6b7bc4d73 Mon Sep 17 00:00:00 2001 From: Maicon Santana Date: Wed, 4 Feb 2026 18:43:55 +0000 Subject: [PATCH] refactor to follow the CONVENTIONS.md (#5530) Co-authored-by: maiconpintoabreu --- .../shaders/resources/shaders/glsl100/deferred_shading.fs | 2 +- .../shaders/resources/shaders/glsl100/mandelbrot_set.fs | 2 +- .../shaders/resources/shaders/glsl120/deferred_shading.fs | 2 +- .../shaders/resources/shaders/glsl120/mandelbrot_set.fs | 2 +- .../shaders/resources/shaders/glsl330/deferred_shading.fs | 2 +- .../shaders/resources/shaders/glsl330/mandelbrot_set.fs | 2 +- src/rcore.c | 8 ++++---- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/shaders/resources/shaders/glsl100/deferred_shading.fs b/examples/shaders/resources/shaders/glsl100/deferred_shading.fs index 63e9c5bea..f8004ef5e 100644 --- a/examples/shaders/resources/shaders/glsl100/deferred_shading.fs +++ b/examples/shaders/resources/shaders/glsl100/deferred_shading.fs @@ -36,7 +36,7 @@ void main() vec3 ambient = albedo*vec3(0.1); vec3 viewDirection = normalize(viewPosition - fragPosition); - for (int i = 0; i < NR_LIGHTS; ++i) + for (int i = 0; i < NR_LIGHTS; i++) { if (lights[i].enabled == 0) continue; vec3 lightDirection = lights[i].position - fragPosition; diff --git a/examples/shaders/resources/shaders/glsl100/mandelbrot_set.fs b/examples/shaders/resources/shaders/glsl100/mandelbrot_set.fs index fb6dee8b3..7a89e86b0 100644 --- a/examples/shaders/resources/shaders/glsl100/mandelbrot_set.fs +++ b/examples/shaders/resources/shaders/glsl100/mandelbrot_set.fs @@ -34,7 +34,7 @@ void main() // Fc(z) = z^2 + c on the complex numbers c from the plane does not diverge to infinity starting at z = 0 // Here: z = a + bi. Iterations: z -> z^2 + c = (a + bi)^2 + (c.x + c.yi) = (a^2 - b^2 + c.x) + (2ab + c.y)i - for (int iter = 0; iter < maxIterationsLimit; ++iter) + for (int iter = 0; iter < maxIterationsLimit; iter++) { float aa = a*a; float bb = b*b; diff --git a/examples/shaders/resources/shaders/glsl120/deferred_shading.fs b/examples/shaders/resources/shaders/glsl120/deferred_shading.fs index f52454d8c..b3c5f1ea0 100644 --- a/examples/shaders/resources/shaders/glsl120/deferred_shading.fs +++ b/examples/shaders/resources/shaders/glsl120/deferred_shading.fs @@ -34,7 +34,7 @@ void main() vec3 ambient = albedo*vec3(0.1); vec3 viewDirection = normalize(viewPosition - fragPosition); - for (int i = 0; i < NR_LIGHTS; ++i) + for (int i = 0; i < NR_LIGHTS; i++) { if (lights[i].enabled == 0) continue; vec3 lightDirection = lights[i].position - fragPosition; diff --git a/examples/shaders/resources/shaders/glsl120/mandelbrot_set.fs b/examples/shaders/resources/shaders/glsl120/mandelbrot_set.fs index 5da3ef437..1943813a3 100644 --- a/examples/shaders/resources/shaders/glsl120/mandelbrot_set.fs +++ b/examples/shaders/resources/shaders/glsl120/mandelbrot_set.fs @@ -41,7 +41,7 @@ void main() a = aa - bb + c.x; b = twoab + c.y; - ++iter; + iter++; } if (iter >= maxIterations) diff --git a/examples/shaders/resources/shaders/glsl330/deferred_shading.fs b/examples/shaders/resources/shaders/glsl330/deferred_shading.fs index 660db3244..18102e934 100644 --- a/examples/shaders/resources/shaders/glsl330/deferred_shading.fs +++ b/examples/shaders/resources/shaders/glsl330/deferred_shading.fs @@ -32,7 +32,7 @@ void main() { vec3 ambient = albedo*vec3(0.1f); vec3 viewDirection = normalize(viewPosition - fragPosition); - for (int i = 0; i < NR_LIGHTS; ++i) + for (int i = 0; i < NR_LIGHTS; i++) { if (lights[i].enabled == 0) continue; vec3 lightDirection = lights[i].position - fragPosition; diff --git a/examples/shaders/resources/shaders/glsl330/mandelbrot_set.fs b/examples/shaders/resources/shaders/glsl330/mandelbrot_set.fs index bde74565f..06fb1e6f8 100644 --- a/examples/shaders/resources/shaders/glsl330/mandelbrot_set.fs +++ b/examples/shaders/resources/shaders/glsl330/mandelbrot_set.fs @@ -31,7 +31,7 @@ void main() // Here: z = a + bi. Iterations: z -> z^2 + c = (a + bi)^2 + (c.x + c.yi) = (a^2 - b^2 + c.x) + (2ab + c.y)i int iter = 0; - for (iter = 0; iter < maxIterations; ++iter) + for (iter = 0; iter < maxIterations; iter++) { float aa = a*a; float bb = b*b; diff --git a/src/rcore.c b/src/rcore.c index 26a394131..2d7b90b9a 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2662,7 +2662,7 @@ const char *GetApplicationDirectory(void) if (len > 0) { - for (int i = len; i >= 0; --i) + for (int i = len; i >= 0; i--) { if (appDir[i] == '\\') { @@ -2684,7 +2684,7 @@ const char *GetApplicationDirectory(void) if (len > 0) { - for (int i = len; i >= 0; --i) + for (int i = len; i >= 0; i--) { if (appDir[i] == '/') { @@ -2706,7 +2706,7 @@ const char *GetApplicationDirectory(void) if (_NSGetExecutablePath(appDir, &size) == 0) { int appDirLength = (int)strlen(appDir); - for (int i = appDirLength; i >= 0; --i) + for (int i = appDirLength; i >= 0; i--) { if (appDir[i] == '/') { @@ -2729,7 +2729,7 @@ const char *GetApplicationDirectory(void) if (sysctl(mib, 4, appDir, &size, NULL, 0) == 0) { int appDirLength = (int)strlen(appDir); - for (int i = appDirLength; i >= 0; --i) + for (int i = appDirLength; i >= 0; i--) { if (appDir[i] == '/') {