]> gitweb.factorcode.org Git - factor.git/commitdiff
raylib: SetCameraMode was removed, update api
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Jul 2023 20:53:39 +0000 (15:53 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 29 Jul 2023 20:53:39 +0000 (15:53 -0500)
extra/raylib/demo/mesh-picking/mesh-picking.factor
extra/raylib/raylib.factor

index 44cc90755bb89980cd54a6346249a15fb05ed9f0..08a2c38e77aa8289a8497b33c7fa03cabd27deeb 100644 (file)
@@ -129,7 +129,7 @@ SYMBOL: mesh-picking-frame
         init-assets :> ( tower triangle )
 
         f :> bary!
-        camera CAMERA_FREE set-camera-mode
+        camera CAMERA_FREE update-camera
 
         60 set-target-fps
         0 mesh-picking-frame set-global
@@ -139,7 +139,7 @@ SYMBOL: mesh-picking-frame
             ! NOTE: This doesn't work, probably because GL context is not handled correctly for switching?
             ! mesh-picking-frame counter 100 mod 0 = [ yield ] when
 
-            camera update-camera
+            camera CAMERA_FREE update-camera
 
             get-mouse-position camera get-mouse-ray :> ray
 
index d8fbbf6428e7ff923cf24550dd21d4a5904c6129..787b5b6b68b5f01e60b8b47183a56a9962995be7 100644 (file)
@@ -954,13 +954,9 @@ FUNCTION-ALIAS: get-gesture-pinch-angle float GetGesturePinchAngle ( )
 ! ------------------------------------------------------------------------------------
 ! Camera System Functions (Module: rcamera)
 ! ------------------------------------------------------------------------------------
-FUNCTION-ALIAS: set-camera-mode void SetCameraMode ( Camera camera, CameraMode mode )    ! Set camera mode (multiple camera modes available)
-FUNCTION-ALIAS: update-camera void UpdateCamera ( Camera* camera )                       ! Update camera position for selected mode
 
-FUNCTION-ALIAS: set-camera-pan-control void SetCameraPanControl ( int keyPan )           ! Set camera pan key to combine with mouse movement (free camera)
-FUNCTION-ALIAS: set-camera-alt-control void SetCameraAltControl ( int keyAlt )           ! Set camera alt key to combine with mouse movement (free camera)
-FUNCTION-ALIAS: set-camera-smooth-zoom-control void SetCameraSmoothZoomControl ( int keySmoothZoom ) ! Set camera smooth zoom key to combine with mouse (free camera)
-FUNCTION-ALIAS: set-camera-move-controls void SetCameraMoveControls ( int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown ) ! Set camera move controls (1st person and 3rd person cameras)
+FUNCTION-ALIAS: update-camera void UpdateCamera ( Camera *camera, CameraMode mode )      ! Update camera position for selected mode
+FUNCTION-ALIAS: update-camera-pro void UpdateCameraPro ( Camera *camera, Vector3 movement, Vector3 rotation, float zoom ) ! Update camera movement/rotation
 
 ! ------------------------------------------------------------------------------------
 ! Basic Shapes Drawing Functions (Module: shapes)