diff options
| author | raysan5 <raysan5@gmail.com> | 2016-01-16 12:52:55 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-01-16 12:52:55 +0100 |
| commit | 183795b8aa78fdf0b8064d72d77eaea8e7b6397b (patch) | |
| tree | 1d18bec6a5510d3c225f05d09cc9649492cb4209 /examples/models_cubicmap.c | |
| parent | 91e00431d48ad90602af30ee015922243cf975cd (diff) | |
| download | raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip | |
Review literals type
Diffstat (limited to 'examples/models_cubicmap.c')
| -rw-r--r-- | examples/models_cubicmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c index 98fc54af..e2a902ef 100644 --- a/examples/models_cubicmap.c +++ b/examples/models_cubicmap.c @@ -21,7 +21,7 @@ int main() InitWindow(screenWidth, screenHeight, "raylib [models] example - cubesmap loading and drawing"); // Define the camera to look into our 3d world - Camera camera = {{ 16.0, 14.0, 16.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }}; + Camera camera = {{ 16.0f, 14.0f, 16.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }}; Image image = LoadImage("resources/cubicmap.png"); // Load cubicmap image (RAM) Texture2D cubicmap = LoadTextureFromImage(image); // Convert image to texture to display (VRAM) @@ -31,7 +31,7 @@ int main() Texture2D texture = LoadTexture("resources/cubicmap_atlas.png"); // Load map texture SetModelTexture(&map, texture); // Bind texture to map model - Vector3 mapPosition = { -16, 0.0, -8 }; // Set model position + Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position UnloadImage(image); // Unload cubesmap image from RAM, already uploaded to VRAM |
