Support multiple data type aliases

Vector4 -> Quaternion
Texture2D -> Texture
RenderTexture2D -> RenderTexture
Camera3D -> Camera
SpriteFont -> Font
This commit is contained in:
raysan5 2018-07-09 10:23:53 +02:00
parent f939378764
commit 3c02a9fc66
1 changed files with 9 additions and 2 deletions

View File

@ -350,6 +350,7 @@ typedef struct Vector4 {
float w;
} Vector4;
// Quaternion type, same as Vector4
typedef Vector4 Quaternion;
// Matrix type (OpenGL style 4x4 - right handed, column major)
@ -396,6 +397,9 @@ typedef struct Texture2D {
int format; // Data format (PixelFormat type)
} Texture2D;
// Texture type, same as Texture2D
typedef Texture2D Texture;
// RenderTexture2D type, for texture rendering
typedef struct RenderTexture2D {
unsigned int id; // OpenGL Framebuffer Object (FBO) id
@ -403,6 +407,9 @@ typedef struct RenderTexture2D {
Texture2D depth; // Depth buffer attachment texture
} RenderTexture2D;
// RenderTexture type, same as RenderTexture2D
typedef RenderTexture2D RenderTexture;
// Font character info
typedef struct CharInfo {
int value; // Character value (Unicode)