summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-05 20:11:54 +0200
committerRay <[email protected]>2020-10-05 20:11:54 +0200
commit55b7b3e82e091906069bb60fa529239358de5f93 (patch)
tree8f6f4e26edd6f5bb01978125d7616d866a29204e /examples
parent0f62427a0c1ea747a6181a41aef496e389f46e7e (diff)
downloadraylib.com-55b7b3e82e091906069bb60fa529239358de5f93.tar.gz
raylib.com-55b7b3e82e091906069bb60fa529239358de5f93.zip
Review "aggreagate initializations"
Diffstat (limited to 'examples')
-rw-r--r--examples/web/core/core_input_gestures.c2
-rw-r--r--examples/web/core/core_input_multitouch.c2
-rw-r--r--examples/web/models/models_first_person_maze.c2
-rw-r--r--examples/web/physics/physac.h4
-rw-r--r--examples/web/shaders/shaders_custom_uniform.c2
-rw-r--r--examples/web/shapes/shapes_bouncing_ball.c2
-rw-r--r--examples/web/shapes/shapes_colors_palette.c2
-rw-r--r--examples/web/shapes/shapes_draw_circle_sector.c2
-rw-r--r--examples/web/shapes/shapes_draw_ring.c2
-rw-r--r--examples/web/shapes/shapes_easings_box_anim.c2
-rw-r--r--examples/web/shapes/shapes_following_eyes.c8
-rw-r--r--examples/web/shapes/shapes_rectangle_scaling.c4
-rw-r--r--examples/web/text/text_font_filters.c2
-rw-r--r--examples/web/text/text_font_loading.c2
-rw-r--r--examples/web/text/text_font_sdf.c4
15 files changed, 21 insertions, 21 deletions
diff --git a/examples/web/core/core_input_gestures.c b/examples/web/core/core_input_gestures.c
index 308f890..509f6f4 100644
--- a/examples/web/core/core_input_gestures.c
+++ b/examples/web/core/core_input_gestures.c
@@ -26,7 +26,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 touchPosition = { 0.0f };
+Vector2 touchPosition = { 0 };
Rectangle touchArea = { 0 };
int gesturesCount = 0;
diff --git a/examples/web/core/core_input_multitouch.c b/examples/web/core/core_input_multitouch.c
index 75f659c..915ef0b 100644
--- a/examples/web/core/core_input_multitouch.c
+++ b/examples/web/core/core_input_multitouch.c
@@ -29,7 +29,7 @@ Vector2 ballPosition = { -100.0f, -100.0f };
Color ballColor = BEIGE;
int touchCounter = 0;
-Vector2 touchPosition = { 0.0f };
+Vector2 touchPosition = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/models/models_first_person_maze.c b/examples/web/models/models_first_person_maze.c
index b48495b..54a26e1 100644
--- a/examples/web/models/models_first_person_maze.c
+++ b/examples/web/models/models_first_person_maze.c
@@ -34,7 +34,7 @@ Texture2D texture = { 0 };
Color *mapPixels = NULL;
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position
-Vector3 playerPosition = { 0.0f };
+Vector3 playerPosition = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/physics/physac.h b/examples/web/physics/physac.h
index 3fb832b..ed77a3c 100644
--- a/examples/web/physics/physac.h
+++ b/examples/web/physics/physac.h
@@ -391,8 +391,8 @@ PHYSACDEF PhysicsBody CreatePhysicsBodyRectangle(Vector2 pos, float width, float
newBody->id = newId;
newBody->enabled = true;
newBody->position = pos;
- newBody->velocity = (Vector2){ 0.0f };
- newBody->force = (Vector2){ 0.0f };
+ newBody->velocity = (Vector2){ 0 };
+ newBody->force = (Vector2){ 0 };
newBody->angularVelocity = 0.0f;
newBody->torque = 0.0f;
newBody->orient = 0.0f;
diff --git a/examples/web/shaders/shaders_custom_uniform.c b/examples/web/shaders/shaders_custom_uniform.c
index 77f84bd..131c897 100644
--- a/examples/web/shaders/shaders_custom_uniform.c
+++ b/examples/web/shaders/shaders_custom_uniform.c
@@ -44,7 +44,7 @@ Shader shader = { 0 }; // Postpro shader
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
int swirlCenterLoc = 0;
-float swirlCenter[2] = { 0.0f };
+float swirlCenter[2] = { 0 };
RenderTexture2D target = { 0 };
diff --git a/examples/web/shapes/shapes_bouncing_ball.c b/examples/web/shapes/shapes_bouncing_ball.c
index cd416ae..1918c9e 100644
--- a/examples/web/shapes/shapes_bouncing_ball.c
+++ b/examples/web/shapes/shapes_bouncing_ball.c
@@ -23,7 +23,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 ballPosition = { 0.0f };
+Vector2 ballPosition = { 0 };
Vector2 ballSpeed = { 5.0f, 4.0f };
int ballRadius = 20;
diff --git a/examples/web/shapes/shapes_colors_palette.c b/examples/web/shapes/shapes_colors_palette.c
index daff399..bcf3172 100644
--- a/examples/web/shapes/shapes_colors_palette.c
+++ b/examples/web/shapes/shapes_colors_palette.c
@@ -39,7 +39,7 @@ Rectangle colorsRecs[MAX_COLORS_COUNT] = { 0 }; // Rectangles array
int colorState[MAX_COLORS_COUNT] = { 0 }; // Color state: 0-DEFAULT, 1-MOUSE_HOVER
-Vector2 mousePoint = { 0.0f };
+Vector2 mousePoint = { 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/web/shapes/shapes_draw_circle_sector.c b/examples/web/shapes/shapes_draw_circle_sector.c
index 1e94c25..1862c41 100644
--- a/examples/web/shapes/shapes_draw_circle_sector.c
+++ b/examples/web/shapes/shapes_draw_circle_sector.c
@@ -29,7 +29,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 center = { 0.0f };
+Vector2 center = { 0 };
float outerRadius = 180.f;
int startAngle = 0;
diff --git a/examples/web/shapes/shapes_draw_ring.c b/examples/web/shapes/shapes_draw_ring.c
index b863bc5..7262b0d 100644
--- a/examples/web/shapes/shapes_draw_ring.c
+++ b/examples/web/shapes/shapes_draw_ring.c
@@ -29,7 +29,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 center = { 0.0f };
+Vector2 center = { 0 };
float innerRadius = 80.0f;
float outerRadius = 190.0f;
diff --git a/examples/web/shapes/shapes_easings_box_anim.c b/examples/web/shapes/shapes_easings_box_anim.c
index 4def3ed..2c954ad 100644
--- a/examples/web/shapes/shapes_easings_box_anim.c
+++ b/examples/web/shapes/shapes_easings_box_anim.c
@@ -25,7 +25,7 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Rectangle rec = { 0.0f };
+Rectangle rec = { 0 };
float rotation = 0.0f;
float alpha = 1.0f;
diff --git a/examples/web/shapes/shapes_following_eyes.c b/examples/web/shapes/shapes_following_eyes.c
index 2a1007b..d83a53c 100644
--- a/examples/web/shapes/shapes_following_eyes.c
+++ b/examples/web/shapes/shapes_following_eyes.c
@@ -25,12 +25,12 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Vector2 scleraLeftPosition = { 0.0f };
-Vector2 scleraRightPosition = { 0.0f };
+Vector2 scleraLeftPosition = { 0 };
+Vector2 scleraRightPosition = { 0 };
float scleraRadius = 80;
-Vector2 irisLeftPosition = { 0.0f };
-Vector2 irisRightPosition = { 0.0f };
+Vector2 irisLeftPosition = { 0 };
+Vector2 irisRightPosition = { 0 };
float irisRadius = 24;
//----------------------------------------------------------------------------------
diff --git a/examples/web/shapes/shapes_rectangle_scaling.c b/examples/web/shapes/shapes_rectangle_scaling.c
index d5432c2..200e91e 100644
--- a/examples/web/shapes/shapes_rectangle_scaling.c
+++ b/examples/web/shapes/shapes_rectangle_scaling.c
@@ -27,9 +27,9 @@ const int screenHeight = 450;
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
-Rectangle rec = { 0.0f };
+Rectangle rec = { 0 };
-Vector2 mousePosition = { 0.0f };
+Vector2 mousePosition = { 0 };
bool mouseScaleReady = false;
bool mouseScaleMode = false;
diff --git a/examples/web/text/text_font_filters.c b/examples/web/text/text_font_filters.c
index 6a8acf1..3a0c0b3 100644
--- a/examples/web/text/text_font_filters.c
+++ b/examples/web/text/text_font_filters.c
@@ -29,7 +29,7 @@ const char msg[50] = "Loaded Font";
Font font = { 0 };
float fontSize = 0.0f;
-Vector2 fontPosition = { 0.0f };
+Vector2 fontPosition = { 0 };
Vector2 textSize = { 0 };
int currentFontFilter = 0; // FILTER_POINT
diff --git a/examples/web/text/text_font_loading.c b/examples/web/text/text_font_loading.c
index 31c4391..008b6e7 100644
--- a/examples/web/text/text_font_loading.c
+++ b/examples/web/text/text_font_loading.c
@@ -38,7 +38,7 @@ const char msg[256] = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI\nJKLMNOPQRSTUV
Font fontBm = { 0 }; // BMFont (AngelCode)
Font fontTtf = { 0 }; // TTF font
-Vector2 fontPosition = { 0.0f };
+Vector2 fontPosition = { 0 };
bool useTtf = false;
diff --git a/examples/web/text/text_font_sdf.c b/examples/web/text/text_font_sdf.c
index 94be519..3176a9e 100644
--- a/examples/web/text/text_font_sdf.c
+++ b/examples/web/text/text_font_sdf.c
@@ -36,8 +36,8 @@ Font fontSDF = { 0 };
Shader shader = { 0 };
-Vector2 fontPosition = { 0.0f };
-Vector2 textSize = { 0.0f };
+Vector2 fontPosition = { 0 };
+Vector2 textSize = { 0 };
float fontSize = 16.0f;
int currentFont = 0; // 0 - fontDefault, 1 - fontSDF