summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2018-05-01 12:31:03 +0200
committerraysan5 <[email protected]>2018-05-01 12:31:03 +0200
commit198d7392560d1eb0dc7b9c8801a19492f753e734 (patch)
tree500b0a373fc79bb49dd20b5c20b6624f5fb6c4c2 /src/raylib.h
parent400c345f96538299b5c40078c4e4d25a1b958408 (diff)
downloadraylib-198d7392560d1eb0dc7b9c8801a19492f753e734.tar.gz
raylib-198d7392560d1eb0dc7b9c8801a19492f753e734.zip
BREAKING CHANGE: Renamed Camera -> Camera3D
Just added a fallback in the meantime...
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index b03a93f3..7949b103 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -400,13 +400,15 @@ typedef struct SpriteFont {
} SpriteFont;
// Camera type, defines a camera position/orientation in 3d space
-typedef struct Camera {
+typedef struct Camera3D {
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
int type; // Camera type, defines projection type: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
-} Camera;
+} Camera3D;
+
+#define Camera Camera3D // Camera type fallback, defaults to Camera3D
// Camera2D type, defines a 2d camera
typedef struct Camera2D {