diff options
| author | Ray <[email protected]> | 2023-02-14 20:13:13 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-02-14 20:13:13 +0100 |
| commit | e843be7ea53a9ec3b460ccecb9587f26721e4b96 (patch) | |
| tree | e54b63928dcd8b3688ddec188f93dd767447a1a4 /src | |
| parent | 547819766faca80482371902acd908c0c4c3f7e0 (diff) | |
| download | raylib-e843be7ea53a9ec3b460ccecb9587f26721e4b96.tar.gz raylib-e843be7ea53a9ec3b460ccecb9587f26721e4b96.zip | |
ADDED: rcamera dependencies details
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcamera.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/rcamera.h b/src/rcamera.h index d1871cdf..7770071e 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -48,11 +48,11 @@ //---------------------------------------------------------------------------------- //... #if defined(CAMERA_STANDALONE) -#define CAMERA_CULL_DISTANCE_NEAR 0.01 -#define CAMERA_CULL_DISTANCE_FAR 1000.0 +#define CAMERA_CULL_DISTANCE_NEAR 0.01 +#define CAMERA_CULL_DISTANCE_FAR 1000.0 #else -#define CAMERA_CULL_DISTANCE_NEAR RL_CULL_DISTANCE_NEAR -#define CAMERA_CULL_DISTANCE_FAR RL_CULL_DISTANCE_FAR +#define CAMERA_CULL_DISTANCE_NEAR RL_CULL_DISTANCE_NEAR +#define CAMERA_CULL_DISTANCE_FAR RL_CULL_DISTANCE_FAR #endif //---------------------------------------------------------------------------------- @@ -145,8 +145,22 @@ Matrix GetCameraProjectionMatrix(Camera* camera, float aspect); #if defined(CAMERA_IMPLEMENTATION) - -#include "raymath.h" // Required for some vector maths +#include "raymath.h" // Required for vector maths: + // Vector3Add() + // Vector3Subtract() + // Vector3Scale() + // Vector3Normalize() + // Vector3Distance() + // Vector3CrossProduct() + // Vector3RotateByAxisAngle() + // Vector3Angle() + // Vector3Negate() + // MatrixLookAt() + // MatrixPerspective() + // MatrixOrtho() + // MatrixIdentity() + +// raylib input functionality required: GetMouseDelta(), GetMouseWheelMove(), IsKeyDown(), IsKeyPressed() //---------------------------------------------------------------------------------- // Defines and Macros @@ -171,12 +185,12 @@ Matrix GetCameraProjectionMatrix(Camera* camera, float aspect); //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- - +//... //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- - +//... //---------------------------------------------------------------------------------- // Module specific Functions Declaration @@ -186,7 +200,6 @@ Matrix GetCameraProjectionMatrix(Camera* camera, float aspect); //---------------------------------------------------------------------------------- // Module Functions Definition //---------------------------------------------------------------------------------- - // Returns the cameras forward vector (normalized) Vector3 GetCameraForward(Camera *camera) { |
