summaryrefslogtreecommitdiffhomepage
path: root/docs/examples/web/models_heightmap.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-04-04 12:17:08 +0200
committerGitHub <[email protected]>2017-04-04 12:17:08 +0200
commit407746193d991190fa4dead94649abb2ed27d462 (patch)
treef79f67c3df8ed657a27abba6029a71be359871df /docs/examples/web/models_heightmap.c
parent5338bbf70d3e2c71fcbd0db54e14b6cf2d5616c3 (diff)
parent1f56e8e5d0000e1c46483530331887dbd0f8ce75 (diff)
downloadraylib-407746193d991190fa4dead94649abb2ed27d462.tar.gz
raylib-407746193d991190fa4dead94649abb2ed27d462.zip
Merge pull request #256 from raysan5/develop
Integrate develop branch
Diffstat (limited to 'docs/examples/web/models_heightmap.c')
-rw-r--r--docs/examples/web/models_heightmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/web/models_heightmap.c b/docs/examples/web/models_heightmap.c
index 09c3dcc9..bc514538 100644
--- a/docs/examples/web/models_heightmap.c
+++ b/docs/examples/web/models_heightmap.c
@@ -48,10 +48,9 @@ int main()
map = LoadHeightmap(image, (Vector3){ 16, 8, 16 }); // Load heightmap model with defined size
map.material.texDiffuse = texture; // Set map diffuse texture
- UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM
+ UnloadImage(image); // Unload heightmap image from RAM, already uploaded to VRAM
- SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
- SetCameraPosition(camera.position); // Set internal camera position to match our custom camera position
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);