aboutsummaryrefslogtreecommitdiff
path: root/examples/core_world_screen.c
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-01-20 13:48:00 +0100
committervictorfisac <victorfisac@gmail.com>2016-01-20 13:48:00 +0100
commitc04752c0e4b646638ce6adf991750763c2dbf393 (patch)
tree9fdafdbdd04dda343a25ac40768900d2d5016da6 /examples/core_world_screen.c
parent4cc394c376c83926da67afe14855d2a3e2b06cfd (diff)
parent29c618a35e19c1c00be94bf423ad6af7ecf1d3f8 (diff)
downloadraylib-c04752c0e4b646638ce6adf991750763c2dbf393.tar.gz
raylib-c04752c0e4b646638ce6adf991750763c2dbf393.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'examples/core_world_screen.c')
-rw-r--r--examples/core_world_screen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/core_world_screen.c b/examples/core_world_screen.c
index eac5fbdc..b70b40dd 100644
--- a/examples/core_world_screen.c
+++ b/examples/core_world_screen.c
@@ -21,9 +21,9 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d camera free");
// 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 }};
- Vector3 cubePosition = { 0.0, 0.0, 0.0 };
+ Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };
Vector2 cubeScreenPosition;
@@ -53,10 +53,10 @@ int main()
Begin3dMode(camera);
- DrawCube(cubePosition, 2, 2, 2, RED);
- DrawCubeWires(cubePosition, 2, 2, 2, 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();