mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
Corrected camera issue and added function
This commit is contained in:
31
src/camera.c
31
src/camera.c
@@ -162,7 +162,7 @@ static void ProcessCamera(Camera *camera, Vector3 *playerPosition)
|
|||||||
{
|
{
|
||||||
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) || defined(PLATFORM_RPI)
|
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) || defined(PLATFORM_RPI)
|
||||||
// Mouse movement detection
|
// Mouse movement detection
|
||||||
if (cameraMode != CAMERA_FREE)
|
if ((cameraMode != CAMERA_FREE) && (cameraMode != CAMERA_ORBITAL))
|
||||||
{
|
{
|
||||||
HideCursor();
|
HideCursor();
|
||||||
|
|
||||||
@@ -449,28 +449,7 @@ void SetSmoothZoomControl(int smoothZoomControlKey)
|
|||||||
smoothZoomControllingKey = smoothZoomControlKey;
|
smoothZoomControllingKey = smoothZoomControlKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetOrbitalTarget(Vector3 target)
|
||||||
|
{
|
||||||
|
internalCamera.target = target;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -437,6 +437,7 @@ void SetResetControl(int resetKey);
|
|||||||
void SetPawnControl(int pawnControlKey);
|
void SetPawnControl(int pawnControlKey);
|
||||||
void SetFnControl(int fnControlKey);
|
void SetFnControl(int fnControlKey);
|
||||||
void SetSmoothZoomControl(int smoothZoomControlKey);
|
void SetSmoothZoomControl(int smoothZoomControlKey);
|
||||||
|
void SetOrbitalTarget(Vector3 target);
|
||||||
|
|
||||||
int GetShaderLocation(Shader shader, const char *uniformName);
|
int GetShaderLocation(Shader shader, const char *uniformName);
|
||||||
void SetShaderValue(Shader shader, int uniformLoc, float *value, int size);
|
void SetShaderValue(Shader shader, int uniformLoc, float *value, int size);
|
||||||
|
Reference in New Issue
Block a user