This commit is contained in:
Ray
2025-08-15 12:21:17 +02:00
parent 1b2612cf75
commit 6530ee136b

View File

@ -417,13 +417,16 @@
// TODO: Texture2D type is very coupled to raylib, required by Font type // TODO: Texture2D type is very coupled to raylib, required by Font type
// It should be redesigned to be provided by user // It should be redesigned to be provided by user
typedef struct Texture2D { typedef struct Texture {
unsigned int id; // OpenGL texture id unsigned int id; // OpenGL texture id
int width; // Texture base width int width; // Texture base width
int height; // Texture base height int height; // Texture base height
int mipmaps; // Mipmap levels, 1 by default int mipmaps; // Mipmap levels, 1 by default
int format; // Data format (PixelFormat type) int format; // Data format (PixelFormat type)
} Texture2D; } Texture;
// Texture2D, same as Texture
typedef Texture Texture2D;
// Image, pixel data stored in CPU memory (RAM) // Image, pixel data stored in CPU memory (RAM)
typedef struct Image { typedef struct Image {