Review Texture type

Texture type also maps to Texture2D and TextureCubemap
This commit is contained in:
Ray
2020-09-28 00:40:32 +02:00
parent 446f9fff00
commit a850246030
2 changed files with 19 additions and 19 deletions

View File

@@ -251,21 +251,21 @@ typedef enum {
float height;
} Rectangle;
// Texture2D type
// Texture type
// NOTE: Data stored in GPU memory
typedef struct Texture2D {
typedef struct Texture {
unsigned int id; // OpenGL texture id
int width; // Texture base width
int height; // Texture base height
int mipmaps; // Mipmap levels, 1 by default
int format; // Data format (PixelFormat)
} Texture2D;
} Texture;
// Texture type, same as Texture2D
typedef Texture2D Texture;
// Texture2D type, same as Texture
typedef Texture Texture2D;
// TextureCubemap type, actually, same as Texture2D
typedef Texture2D TextureCubemap;
// TextureCubemap type, actually, same as Texture
typedef Texture TextureCubemap;
// Vertex data definning a mesh
typedef struct Mesh {