summaryrefslogtreecommitdiffhomepage
path: root/examples/models_geometric_shapes.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-01-16 12:52:55 +0100
committerraysan5 <[email protected]>2016-01-16 12:52:55 +0100
commit183795b8aa78fdf0b8064d72d77eaea8e7b6397b (patch)
tree1d18bec6a5510d3c225f05d09cc9649492cb4209 /examples/models_geometric_shapes.c
parent91e00431d48ad90602af30ee015922243cf975cd (diff)
downloadraylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz
raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip
Review literals type
Diffstat (limited to 'examples/models_geometric_shapes.c')
-rw-r--r--examples/models_geometric_shapes.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/models_geometric_shapes.c b/examples/models_geometric_shapes.c
index e2d41dcd..9ea5b423 100644
--- a/examples/models_geometric_shapes.c
+++ b/examples/models_geometric_shapes.c
@@ -21,7 +21,7 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [models] example - geometric shapes");
// Define the camera to look into our 3d world
- Camera camera = {{ 0.0, 10.0, 10.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }};
+ Camera camera = {{ 0.0f, 10.0f, 10.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }};
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -42,21 +42,21 @@ int main()
Begin3dMode(camera);
- DrawCube((Vector3){-4, 0, 2}, 2, 5, 2, RED);
- DrawCubeWires((Vector3){-4, 0, 2}, 2, 5, 2, GOLD);
- DrawCubeWires((Vector3){-4, 0, -2}, 3, 6, 2, MAROON);
+ DrawCube((Vector3){-4.0f, 0.0f, 2.0f}, 2.0f, 5.0f, 2.0f, RED);
+ DrawCubeWires((Vector3){-4.0f, 0.0f, 2.0f}, 2.0f, 5.0f, 2.0f, GOLD);
+ DrawCubeWires((Vector3){-4.0f, 0.0f, -2.0f}, 3.0f, 6.0f, 2.0f, MAROON);
- DrawSphere((Vector3){-1, 0, -2}, 1, GREEN);
- DrawSphereWires((Vector3){1, 0, 2}, 2, 16, 16, LIME);
+ DrawSphere((Vector3){-1.0f, 0.0f, -2.0f}, 1.0f, GREEN);
+ DrawSphereWires((Vector3){1.0f, 0.0f, 2.0f}, 2.0f, 16, 16, LIME);
- DrawCylinder((Vector3){4, 0, -2}, 1, 2, 3, 4, SKYBLUE);
- DrawCylinderWires((Vector3){4, 0, -2}, 1, 2, 3, 4, DARKBLUE);
- DrawCylinderWires((Vector3){4.5, -1, 2}, 1, 1, 2, 6, BROWN);
+ DrawCylinder((Vector3){4.0f, 0.0f, -2.0f}, 1.0f, 2.0f, 3.0f, 4, SKYBLUE);
+ DrawCylinderWires((Vector3){4.0f, 0.0f, -2.0f}, 1.0f, 2.0f, 3.0f, 4, DARKBLUE);
+ DrawCylinderWires((Vector3){4.5f, -1.0f, 2.0f}, 1.0f, 1.0f, 2.0f, 6, BROWN);
- DrawCylinder((Vector3){1, 0, -4}, 0, 1.5, 3, 8, GOLD);
- DrawCylinderWires((Vector3){1, 0, -4}, 0, 1.5, 3, 8, PINK);
+ DrawCylinder((Vector3){1.0f, 0.0f, -4.0f}, 0.0f, 1.5f, 3.0f, 8, GOLD);
+ DrawCylinderWires((Vector3){1.0f, 0.0f, -4.0f}, 0.0f, 1.5f, 3.0f, 8, PINK);
- DrawGrid(10.0, 1.0); // Draw a grid
+ DrawGrid(10, 1.0f); // Draw a grid
End3dMode();