diff options
| author | victorfisac <[email protected]> | 2016-02-26 14:32:30 +0100 |
|---|---|---|
| committer | victorfisac <[email protected]> | 2016-02-26 14:32:30 +0100 |
| commit | ce56fcb1eda06385b88c1a906f0968d742ff8130 (patch) | |
| tree | 4c82fa8ce61db1ae4af3ab1e174dd8c7d5918919 /examples/models_cubicmap.c | |
| parent | f582ab06add085594f2579ee6e7d625212abd204 (diff) | |
| parent | 75a73d94171051037fcf670852877977d9251520 (diff) | |
| download | raylib-ce56fcb1eda06385b88c1a906f0968d742ff8130.tar.gz raylib-ce56fcb1eda06385b88c1a906f0968d742ff8130.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/master'
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 |
