Skip to content

Commit

Permalink
first changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crydsch committed Jul 4, 2022
1 parent 850321c commit 36215aa
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 349 deletions.
3 changes: 3 additions & 0 deletions examples/core/core_3d_camera_first_person.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ int main(void)

SetCameraMode(camera, CAMERA_FIRST_PERSON); // Set a first person camera mode

// Catch cursor
DisableCursor();

SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion src/raylib.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ typedef struct Camera3D {
Vector3 up; // Camera up vector (rotation over its axis)
float fovy; // Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
int projection; // Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
int mode; // Camera mode: CAMERA_FREE, CAMERA_FIRST_PERSON, CAMERA_THIRD_PERSON, CAMERA_ORBITAL or CUSTOM
} Camera3D;

typedef Camera3D Camera; // Camera type fallback, defaults to Camera3D
Expand Down Expand Up @@ -1150,7 +1151,7 @@ RLAPI float GetGesturePinchAngle(void); // Get gesture pinch ang
//------------------------------------------------------------------------------------
// Camera System Functions (Module: rcamera)
//------------------------------------------------------------------------------------
RLAPI void SetCameraMode(Camera camera, int mode); // Set camera mode (multiple camera modes available)
RLAPI void SetCameraMode(Camera* camera, int mode); // Set camera mode (multiple camera modes available)
RLAPI void UpdateCamera(Camera *camera); // Update camera position for selected mode

RLAPI void SetCameraPanControl(int keyPan); // Set camera pan key to combine with mouse movement (free camera)
Expand Down
Loading

0 comments on commit 36215aa

Please sign in to comment.