summaryrefslogtreecommitdiffhomepage
path: root/examples/models_billboard.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_billboard.c
parent91e00431d48ad90602af30ee015922243cf975cd (diff)
downloadraylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz
raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip
Review literals type
Diffstat (limited to 'examples/models_billboard.c')
-rw-r--r--examples/models_billboard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/models_billboard.c b/examples/models_billboard.c
index e5f6489f..bac42d35 100644
--- a/examples/models_billboard.c
+++ b/examples/models_billboard.c
@@ -21,10 +21,10 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [models] example - drawing billboards");
// Define the camera to look into our 3d world
- Camera camera = {{ 5.0, 4.0, 5.0 }, { 0.0, 2.0, 0.0 }, { 0.0, 1.0, 0.0 }};
+ Camera camera = {{ 5.0f, 4.0f, 5.0f }, { 0.0f, 2.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }};
Texture2D bill = LoadTexture("resources/billboard.png"); // Our texture billboard
- Vector3 billPosition = { 0.0, 2.0, 0.0 }; // Position where draw billboard
+ Vector3 billPosition = { 0.0f, 2.0f, 0.0f }; // Position where draw billboard
SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
SetCameraPosition(camera.position); // Set internal camera position to match our camera position
@@ -49,9 +49,9 @@ int main()
Begin3dMode(camera);
- DrawGrid(10.0, 1.0); // Draw a grid
-
DrawBillboard(camera, bill, billPosition, 2.0f, WHITE);
+
+ DrawGrid(10, 1.0f); // Draw a grid
End3dMode();