diff options
| author | raysan5 <[email protected]> | 2016-01-16 12:52:55 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-01-16 12:52:55 +0100 |
| commit | 183795b8aa78fdf0b8064d72d77eaea8e7b6397b (patch) | |
| tree | 1d18bec6a5510d3c225f05d09cc9649492cb4209 /examples/core_3d_mode.c | |
| parent | 91e00431d48ad90602af30ee015922243cf975cd (diff) | |
| download | raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip | |
Review literals type
Diffstat (limited to 'examples/core_3d_mode.c')
| -rw-r--r-- | examples/core_3d_mode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/core_3d_mode.c b/examples/core_3d_mode.c index 3a5fae13..40415fea 100644 --- a/examples/core_3d_mode.c +++ b/examples/core_3d_mode.c @@ -22,11 +22,11 @@ int main() // Define the camera to look into our 3d world Camera camera; - camera.position = (Vector3){ 0.0, 10.0, 10.0 }; - camera.target = (Vector3){ 0.0, 0.0, 0.0 }; - camera.up = (Vector3){ 0.0, 1.0, 0.0 }; + camera.position = (Vector3){ 0.0f, 10.0f, 10.0f }; + camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; + camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; - Vector3 cubePosition = { 0.0, 0.0, 0.0 }; + Vector3 cubePosition = { 0.0f, 0.0f, 0.0f }; SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- @@ -47,10 +47,10 @@ int main() Begin3dMode(camera); - DrawCube(cubePosition, 2.0, 2.0, 2.0, RED); - DrawCubeWires(cubePosition, 2.0, 2.0, 2.0, MAROON); + DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED); + DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON); - DrawGrid(10.0, 1.0); + DrawGrid(10, 1.0f); End3dMode(); |
