summaryrefslogtreecommitdiffhomepage
path: root/examples/src/models/models_heightmap.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-08-14 19:32:27 +0200
committerRay <[email protected]>2018-08-14 19:32:27 +0200
commitab07e099dbf782c4c69cd0f0e06d1f37a3a887bf (patch)
tree3b251a6667d3ea3696b0435f9b5306be31d32ba4 /examples/src/models/models_heightmap.c
parenta8e30fb58fcc414aae8533f6f118c4f005b02833 (diff)
downloadraylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.tar.gz
raylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.zip
Updated examples
Diffstat (limited to 'examples/src/models/models_heightmap.c')
-rw-r--r--examples/src/models/models_heightmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/models/models_heightmap.c b/examples/src/models/models_heightmap.c
index e476d1b..d131b12 100644
--- a/examples/src/models/models_heightmap.c
+++ b/examples/src/models/models_heightmap.c
@@ -21,7 +21,7 @@ int main()
InitWindow(screenWidth, screenHeight, "raylib [models] example - heightmap loading and drawing");
// Define our custom camera to look into our 3d world
- Camera camera = {{ 18.0f, 16.0f, 18.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f };
+ Camera camera = {{ 18.0f, 16.0f, 18.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 };
Image image = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM)
Texture2D texture = LoadTextureFromImage(image); // Convert image to texture (VRAM)
@@ -53,13 +53,13 @@ int main()
ClearBackground(RAYWHITE);
- Begin3dMode(camera);
+ BeginMode3D(camera);
DrawModel(model, mapPosition, 1.0f, RED);
DrawGrid(20, 1.0f);
- End3dMode();
+ EndMode3D();
DrawTexture(texture, screenWidth - texture.width - 20, 20, WHITE);
DrawRectangleLines(screenWidth - texture.width - 20, 20, texture.width, texture.height, GREEN);