diff options
| author | Ray <raysan5@gmail.com> | 2015-08-31 01:16:34 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2015-08-31 01:16:34 +0200 |
| commit | 60194753d7b8abcdec3df2a502ccd29a1076bb7c (patch) | |
| tree | 47df863966fee50bd3a10d195c3f8274b4ed5ee6 /src/camera.h | |
| parent | 3a9ed0e8462570e30d92e2aa8c0ff3cf655ef863 (diff) | |
| parent | 808aeabf4c2ab0828e4f7806b75d95dc1b5ab212 (diff) | |
| download | raylib-60194753d7b8abcdec3df2a502ccd29a1076bb7c.tar.gz raylib-60194753d7b8abcdec3df2a502ccd29a1076bb7c.zip | |
Merge pull request #26 from raysan5/develop
Develop branch integration
Diffstat (limited to 'src/camera.h')
| -rw-r--r-- | src/camera.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/camera.h b/src/camera.h index 63d8f786..ed85320a 100644 --- a/src/camera.h +++ b/src/camera.h @@ -76,18 +76,20 @@ extern "C" { // Prevents name mangling of functions // Module Functions Declaration //---------------------------------------------------------------------------------- void SetCameraMode(int mode); // Set camera mode (multiple camera modes available) -Camera UpdateCamera(Vector3 *playerPosition); // Update camera and player position (1st person and 3rd person cameras) +void UpdateCamera(Camera *camera); // Update camera (player position is ignored) +void UpdateCameraPlayer(Camera *camera, Vector3 *position); // Update camera and player position (1st person and 3rd person cameras) -void SetCameraMoveControls(int frontKey, int backKey, - int leftKey, int rightKey, - int upKey, int downKey); // Set camera move controls (1st person and 3rd person cameras) +void SetCameraPosition(Vector3 position); // Set internal camera position +void SetCameraTarget(Vector3 target); // Set internal camera target void SetCameraPanControl(int panKey); // Set camera pan key to combine with mouse movement (free camera) void SetCameraAltControl(int altKey); // Set camera alt key to combine with mouse movement (free camera) void SetCameraSmoothZoomControl(int szKey); // Set camera smooth zoom key to combine with mouse (free camera) +void SetCameraMoveControls(int frontKey, int backKey, + int leftKey, int rightKey, + int upKey, int downKey); // Set camera move controls (1st person and 3rd person cameras) void SetCameraMouseSensitivity(float sensitivity); // Set camera mouse sensitivity (1st person and 3rd person cameras) -void SetCameraTarget(Vector3 target); // Set internal camera target #ifdef __cplusplus } |
