|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
A resource representing a texture intended for use in the GUI (ImGui). More...
#include <GuiTexture.h>
Public Member Functions | |
| GuiTexture () | |
| Constructs an empty GuiTexture resource. | |
| ~GuiTexture () | |
| Destructor. Frees the decoded pixel data. | |
| void * | GetPointer () override |
| Returns a pointer to the raw pixel data. | |
| size_t | GetPointerSize () override |
| Returns the size of the raw pixel data in bytes. | |
Public Member Functions inherited from Ship::Resource< void > | |
| void * | GetRawPointer () override |
| Returns a type-erased raw pointer to the underlying resource data. | |
| IResource (std::shared_ptr< ResourceInitData > initData) | |
| Constructs an IResource with the given initialization data. | |
Public Member Functions inherited from Ship::IResource | |
| IResource (std::shared_ptr< ResourceInitData > initData) | |
| Constructs an IResource with the given initialization data. | |
| virtual | ~IResource () |
| bool | IsDirty () |
| Returns true if the resource has been marked dirty. | |
| void | Dirty () |
| Marks the resource as dirty. | |
| std::shared_ptr< ResourceInitData > | GetInitData () |
| Returns the initialization data used to load this resource. | |
Public Attributes | |
| uint8_t * | Data |
| Raw decoded pixel data (RGBA). | |
| size_t | DataSize |
| Size of the pixel data buffer in bytes. | |
| GuiTextureMetadata | Metadata |
| Renderer metadata for this texture (ID, dimensions). | |
Additional Inherited Members | |
Static Public Attributes inherited from Ship::IResource | |
| static const std::string | gAltAssetPrefix = "alt/" |
| Path prefix that identifies an "alt asset" override. | |
A resource representing a texture intended for use in the GUI (ImGui).
GuiTexture holds the raw decoded pixel data loaded from an archive and associated renderer metadata once the texture has been uploaded.
| Ship::GuiTexture::GuiTexture | ( | ) |
Constructs an empty GuiTexture resource.
| Ship::GuiTexture::~GuiTexture | ( | ) |
Destructor. Frees the decoded pixel data.
|
overridevirtual |
Returns a pointer to the raw pixel data.
Implements Ship::Resource< void >.
|
overridevirtual |
Returns the size of the raw pixel data in bytes.
Implements Ship::IResource.
| uint8_t* Ship::GuiTexture::Data |
Raw decoded pixel data (RGBA).
| size_t Ship::GuiTexture::DataSize |
Size of the pixel data buffer in bytes.
| GuiTextureMetadata Ship::GuiTexture::Metadata |
Renderer metadata for this texture (ID, dimensions).