diff options
| author | Ray San <raysan5@gmail.com> | 2018-04-11 10:13:00 +0200 |
|---|---|---|
| committer | Ray San <raysan5@gmail.com> | 2018-04-11 10:13:00 +0200 |
| commit | 4cc12ef2b32f66f160e4e401e5cd76d1740eaf61 (patch) | |
| tree | f9a43a0d3e69aa430e3a8152bb6b5b9268c3b1be /src | |
| parent | cc3b8645df23ed9aeb9d6efc806ab91170a29a89 (diff) | |
| download | raylib-4cc12ef2b32f66f160e4e401e5cd76d1740eaf61.tar.gz raylib-4cc12ef2b32f66f160e4e401e5cd76d1740eaf61.zip | |
Review camera definition on examples
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/raylib.h b/src/raylib.h index fd4b9b21..9c50ecf7 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -396,19 +396,13 @@ typedef struct SpriteFont { CharInfo *chars; // Characters info data } SpriteFont; -// Camera projection modes -typedef enum { - CAMERA_PERSPECTIVE = 0, - CAMERA_ORTHOGRAPHIC -} CameraType; - // Camera type, defines a camera position/orientation in 3d space typedef struct Camera { Vector3 position; // Camera position Vector3 target; // Camera target it looks-at 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 - CameraType type; // Camera type, controlling projection type, either CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC. + int type; // Camera type, defines projection type: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC } Camera; // Camera2D type, defines a 2d camera @@ -673,6 +667,12 @@ typedef enum { CAMERA_THIRD_PERSON } CameraMode; +// Camera projection modes +typedef enum { + CAMERA_PERSPECTIVE = 0, + CAMERA_ORTHOGRAPHIC +} CameraType; + // Head Mounted Display devices typedef enum { HMD_DEFAULT_DEVICE = 0, |
