diff options
| author | raysan5 <[email protected]> | 2015-08-30 17:46:37 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2015-08-30 17:46:37 +0200 |
| commit | 32330801c96ad017de1334922a8a88f08811e6f4 (patch) | |
| tree | 6d28ac760ef9198aba8ce3df0a87dbb9405fa231 /examples/models_cubicmap.c | |
| parent | 535b9e606f6571c5d4163481d077ae3d5a79f1b8 (diff) | |
| download | raylib-32330801c96ad017de1334922a8a88f08811e6f4.tar.gz raylib-32330801c96ad017de1334922a8a88f08811e6f4.zip | |
Updates some examples
Diffstat (limited to 'examples/models_cubicmap.c')
| -rw-r--r-- | examples/models_cubicmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/models_cubicmap.c b/examples/models_cubicmap.c index 3b20907b..d7fe896c 100644 --- a/examples/models_cubicmap.c +++ b/examples/models_cubicmap.c @@ -35,18 +35,18 @@ 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 + SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode + SetCameraPosition(camera.position); // Set internal camera position to match our custom camera position - 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 //---------------------------------------------------------------------------------- - camera = UpdateCamera(0); // Update internal camera and our camera + UpdateCamera(&camera); // Update internal camera and our camera //---------------------------------------------------------------------------------- // Draw |
