A resource representing a texture intended for use in the GUI (ImGui).
Definition GuiTexture.h:29
size_t DataSize
Size of the pixel data buffer in bytes.
Definition GuiTexture.h:55
~GuiTexture()
Destructor. Frees the decoded pixel data.
GuiTexture()
Constructs an empty GuiTexture resource.
void * GetPointer() override
Returns a pointer to the raw pixel data.
uint8_t * Data
Raw decoded pixel data (RGBA).
Definition GuiTexture.h:52
size_t GetPointerSize() override
Returns the size of the raw pixel data in bytes.
GuiTextureMetadata Metadata
Renderer metadata for this texture (ID, dimensions).
Definition GuiTexture.h:58