diff options
| author | Ray <[email protected]> | 2020-10-05 20:11:54 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-10-05 20:11:54 +0200 |
| commit | 55b7b3e82e091906069bb60fa529239358de5f93 (patch) | |
| tree | 8f6f4e26edd6f5bb01978125d7616d866a29204e /examples/web/shapes | |
| parent | 0f62427a0c1ea747a6181a41aef496e389f46e7e (diff) | |
| download | raylib.com-55b7b3e82e091906069bb60fa529239358de5f93.tar.gz raylib.com-55b7b3e82e091906069bb60fa529239358de5f93.zip | |
Review "aggreagate initializations"
Diffstat (limited to 'examples/web/shapes')
| -rw-r--r-- | examples/web/shapes/shapes_bouncing_ball.c | 2 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_colors_palette.c | 2 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_draw_circle_sector.c | 2 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_draw_ring.c | 2 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_easings_box_anim.c | 2 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_following_eyes.c | 8 | ||||
| -rw-r--r-- | examples/web/shapes/shapes_rectangle_scaling.c | 4 |
7 files changed, 11 insertions, 11 deletions
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; |
