diff options
| author | Ray <[email protected]> | 2018-08-14 19:32:27 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-08-14 19:32:27 +0200 |
| commit | ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf (patch) | |
| tree | 3b251a6667d3ea3696b0435f9b5306be31d32ba4 /examples/src/models/models_heightmap.c | |
| parent | a8e30fb58fcc414aae8533f6f118c4f005b02833 (diff) | |
| download | raylib.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.c | 6 |
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); |
