diff options
| author | raysan5 <[email protected]> | 2016-09-25 14:28:24 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-09-25 14:28:24 +0200 |
| commit | 753b549aa5c6a010fc4de8acc2f64afdfce69cee (patch) | |
| tree | d391bf49f41c39a2d720d1bab632bef936b3fbc2 /examples/models_cubicmap.c | |
| parent | 87fc7254e725f4e5c5137b31d1dfe56be8e22cf0 (diff) | |
| download | raylib-753b549aa5c6a010fc4de8acc2f64afdfce69cee.tar.gz raylib-753b549aa5c6a010fc4de8acc2f64afdfce69cee.zip | |
Improving camera system -IN PROGRESS-
Diffstat (limited to 'examples/models_cubicmap.c')
| -rw-r--r-- | examples/models_cubicmap.c | 10 |
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 |
