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_mesh_generation.c | |
| parent | a8e30fb58fcc414aae8533f6f118c4f005b02833 (diff) | |
| download | raylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.tar.gz raylib.com-ab07e099dbf782c4c69cd0f0e06d1f37a3a887bf.zip | |
Updated examples
Diffstat (limited to 'examples/src/models/models_mesh_generation.c')
| -rw-r--r-- | examples/src/models/models_mesh_generation.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/models/models_mesh_generation.c b/examples/src/models/models_mesh_generation.c index 7222215..c02bd91 100644 --- a/examples/src/models/models_mesh_generation.c +++ b/examples/src/models/models_mesh_generation.c @@ -41,7 +41,7 @@ int main() for (int i = 0; i < NUM_MODELS; i++) models[i].material.maps[MAP_DIFFUSE].texture = texture; // Define the camera to look into our 3d world - Camera camera = {{ 5.0f, 5.0f, 5.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f }; + Camera camera = {{ 5.0f, 5.0f, 5.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 }; // Model drawing position Vector3 position = { 0.0f, 0.0f, 0.0f }; @@ -72,13 +72,13 @@ int main() ClearBackground(RAYWHITE); - Begin3dMode(camera); + BeginMode3D(camera); DrawModel(models[currentModel], position, 1.0f, WHITE); DrawGrid(10, 1.0); - End3dMode(); + EndMode3D(); DrawRectangle(30, 400, 310, 30, Fade(SKYBLUE, 0.5f)); DrawRectangleLines(30, 400, 310, 30, Fade(DARKBLUE, 0.5f)); |
