summaryrefslogtreecommitdiffhomepage
path: root/examples/models_cubicmap.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-09-25 14:28:24 +0200
committerraysan5 <[email protected]>2016-09-25 14:28:24 +0200
commit753b549aa5c6a010fc4de8acc2f64afdfce69cee (patch)
treed391bf49f41c39a2d720d1bab632bef936b3fbc2 /examples/models_cubicmap.c
parent87fc7254e725f4e5c5137b31d1dfe56be8e22cf0 (diff)
downloadraylib-753b549aa5c6a010fc4de8acc2f64afdfce69cee.tar.gz
raylib-753b549aa5c6a010fc4de8acc2f64afdfce69cee.zip
Improving camera system -IN PROGRESS-
Diffstat (limited to 'examples/models_cubicmap.c')
-rw-r--r--examples/models_cubicmap.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c
index 89bc75cf..df700d65 100644
--- a/examples/models_cubicmap.c
+++ b/examples/models_cubicmap.c
@@ -35,19 +35,17 @@ int main()
UnloadImage(image); // Unload cubesmap 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
- SetCameraFovy(camera.fovy); // Set internal camera field-of-view Y
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop
- while (!WindowShouldClose()) // Detect window close button or ESC key
+ while (!WindowShouldClose()) // Detect window close button or ESC key
{
// Update
//----------------------------------------------------------------------------------
- UpdateCamera(&camera); // Update internal camera and our camera
+ UpdateCamera(&camera); // Update internal camera and our camera
//----------------------------------------------------------------------------------
// Draw