|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
A resource representing a loaded font file (e.g. TTF). More...
#include <Font.h>
Public Member Functions | |
| Font () | |
| Constructs an empty Font resource. | |
| virtual | ~Font () |
| Destructor. | |
| void * | GetPointer () override |
| Returns a pointer to the raw font data. | |
| size_t | GetPointerSize () override |
| Returns the size of the raw font 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 | |
| char * | Data = nullptr |
| Raw font file data. | |
| size_t | DataSize |
| Size of the font data buffer in bytes. | |
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 loaded font file (e.g. TTF).
Font wraps raw font data loaded from an archive so that it can be registered with ImGui or another text rendering system.
| Ship::Font::Font | ( | ) |
Constructs an empty Font resource.
|
virtual |
Destructor.
|
overridevirtual |
Returns a pointer to the raw font data.
Implements Ship::Resource< void >.
|
overridevirtual |
Returns the size of the raw font data in bytes.
Implements Ship::IResource.
| char* Ship::Font::Data = nullptr |
Raw font file data.
| size_t Ship::Font::DataSize |
Size of the font data buffer in bytes.