From 73989a49817225f11f547d270598e93745bf7df0 Mon Sep 17 00:00:00 2001 From: Crydsch Cube Date: Tue, 14 Feb 2023 17:47:21 +0100 Subject: WIP rcamera redesign vector (#2563) * core functionality CAMERA_FREE * fix example * add remaining camera modes * add view bobbing * view bobbing * catch curser in SetCameraMode * adjust examples * fix compilation on linux * fix example text_draw_3d * actually fix text_draw_3d * Updated camera API * Improve Vector3RotateByAxisAngle() function * remove camera.mode dependency from low-level functions * remove camera.mode from struct * fixes after rebase * adjust examples for new UpdateCamera function * adjust example models_loading_m3d --------- Co-authored-by: Ray --- examples/models/models_cubicmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/models/models_cubicmap.c') diff --git a/examples/models/models_cubicmap.c b/examples/models/models_cubicmap.c index 4953a99f..83bfab68 100644 --- a/examples/models/models_cubicmap.c +++ b/examples/models/models_cubicmap.c @@ -42,8 +42,7 @@ int main(void) UnloadImage(image); // Unload cubesmap image from RAM, already uploaded to VRAM - SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode - + DisableCursor(); // Catch cursor SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- @@ -52,7 +51,7 @@ int main(void) { // Update //---------------------------------------------------------------------------------- - UpdateCamera(&camera); + UpdateCamera(&camera, CAMERA_ORBITAL); //---------------------------------------------------------------------------------- // Draw -- cgit v1.2.3