From 6530ee136b3c5af86c5640151f07837a604308ec Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 15 Aug 2025 12:21:17 +0200 Subject: [PATCH] Fix #501 --- src/raygui.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index f4ba874..6999bd5 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -417,13 +417,16 @@ // TODO: Texture2D type is very coupled to raylib, required by Font type // It should be redesigned to be provided by user - 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 type) - } Texture2D; + } Texture; + + // Texture2D, same as Texture + typedef Texture Texture2D; // Image, pixel data stored in CPU memory (RAM) typedef struct Image {