|
@ -350,6 +350,7 @@ typedef struct Vector4 { |
|
|
float w; |
|
|
float w; |
|
|
} Vector4; |
|
|
} Vector4; |
|
|
|
|
|
|
|
|
|
|
|
// Quaternion type, same as Vector4 |
|
|
typedef Vector4 Quaternion; |
|
|
typedef Vector4 Quaternion; |
|
|
|
|
|
|
|
|
// Matrix type (OpenGL style 4x4 - right handed, column major) |
|
|
// Matrix type (OpenGL style 4x4 - right handed, column major) |
|
@ -396,6 +397,9 @@ typedef struct Texture2D { |
|
|
int format; // Data format (PixelFormat type) |
|
|
int format; // Data format (PixelFormat type) |
|
|
} Texture2D; |
|
|
} Texture2D; |
|
|
|
|
|
|
|
|
|
|
|
// Texture type, same as Texture2D |
|
|
|
|
|
typedef Texture2D Texture; |
|
|
|
|
|
|
|
|
// RenderTexture2D type, for texture rendering |
|
|
// RenderTexture2D type, for texture rendering |
|
|
typedef struct RenderTexture2D { |
|
|
typedef struct RenderTexture2D { |
|
|
unsigned int id; // OpenGL Framebuffer Object (FBO) id |
|
|
unsigned int id; // OpenGL Framebuffer Object (FBO) id |
|
@ -403,6 +407,9 @@ typedef struct RenderTexture2D { |
|
|
Texture2D depth; // Depth buffer attachment texture |
|
|
Texture2D depth; // Depth buffer attachment texture |
|
|
} RenderTexture2D; |
|
|
} RenderTexture2D; |
|
|
|
|
|
|
|
|
|
|
|
// RenderTexture type, same as RenderTexture2D |
|
|
|
|
|
typedef RenderTexture2D RenderTexture; |
|
|
|
|
|
|
|
|
// Font character info |
|
|
// Font character info |
|
|
typedef struct CharInfo { |
|
|
typedef struct CharInfo { |
|
|
int value; // Character value (Unicode) |
|
|
int value; // Character value (Unicode) |
|
@ -421,7 +428,7 @@ typedef struct Font { |
|
|
CharInfo *chars; // Characters info data |
|
|
CharInfo *chars; // Characters info data |
|
|
} Font; |
|
|
} Font; |
|
|
|
|
|
|
|
|
#define SpriteFont Font // SpriteFont type fallback, defaults to Font |
|
|
|
|
|
|
|
|
#define SpriteFont Font // SpriteFont type fallback, defaults to Font |
|
|
|
|
|
|
|
|
// Camera type, defines a camera position/orientation in 3d space |
|
|
// Camera type, defines a camera position/orientation in 3d space |
|
|
typedef struct Camera3D { |
|
|
typedef struct Camera3D { |
|
@ -432,7 +439,7 @@ typedef struct Camera3D { |
|
|
int type; // Camera type, defines projection type: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC |
|
|
int type; // Camera type, defines projection type: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC |
|
|
} Camera3D; |
|
|
} Camera3D; |
|
|
|
|
|
|
|
|
#define Camera Camera3D // Camera type fallback, defaults to Camera3D |
|
|
|
|
|
|
|
|
#define Camera Camera3D // Camera type fallback, defaults to Camera3D |
|
|
|
|
|
|
|
|
// Camera2D type, defines a 2d camera |
|
|
// Camera2D type, defines a 2d camera |
|
|
typedef struct Camera2D { |
|
|
typedef struct Camera2D { |
|
|