summaryrefslogtreecommitdiffhomepage
path: root/examples/models_heightmap.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2015-07-18 19:26:13 +0200
committerraysan5 <[email protected]>2015-07-18 19:26:13 +0200
commit067b884f395b7b6d4c179cb3d58b0d17a02950ec (patch)
treeb6075ae3689cb345c27f0358bc814b48596b3877 /examples/models_heightmap.c
parenta98578c91db7d51233ae56e599dd4a3b2244cd0c (diff)
downloadraylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.tar.gz
raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.zip
Updated examples for next raylib version
Diffstat (limited to 'examples/models_heightmap.c')
-rw-r--r--examples/models_heightmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/models_heightmap.c b/examples/models_heightmap.c
index 7121c261..a23656a5 100644
--- a/examples/models_heightmap.c
+++ b/examples/models_heightmap.c
@@ -23,13 +23,13 @@ int main()
// Define the camera to look into our 3d world
Camera camera = {{ 10.0, 12.0, 10.0 }, { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }};
- Image img = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM)
- Texture2D texture = LoadTextureFromImage(img, false); // Convert image to texture (VRAM)
- Model map = LoadHeightmap(img, 4); // Load heightmap model
+ Image image = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM)
+ Texture2D texture = LoadTextureFromImage(image); // Convert image to texture (VRAM)
+ Model map = LoadHeightmap(image, 4); // Load heightmap model
SetModelTexture(&map, texture); // Bind texture to model
Vector3 mapPosition = { -4, 0.0, -4 }; // Set model position
- UnloadImage(img); // Unload heightmap image from RAM, already uploaded to VRAM
+ UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------