|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
#include <Texture.h>
Public Member Functions | |
| Texture () | |
| uint8_t * | GetPointer () override |
| Returns a typed pointer to the resource payload. | |
| size_t | GetPointerSize () override |
| Returns the size (in bytes) of the type pointed to by GetRawPointer(). | |
| ~Texture () | |
Public Member Functions inherited from Ship::Resource< uint8_t > | |
| 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 | |
| TextureType | Type |
| uint16_t | Width |
| uint16_t | Height |
| uint32_t | Flags = 0 |
| float | HByteScale = 1.0 |
| float | VPixelScale = 1.0 |
| uint32_t | ImageDataSize |
| uint8_t * | ImageData = nullptr |
| std::shared_ptr< std::vector< char > > | mImageBuffer |
Additional Inherited Members | |
Static Public Attributes inherited from Ship::IResource | |
| static const std::string | gAltAssetPrefix = "alt/" |
| Path prefix that identifies an "alt asset" override. | |
| Fast::Texture::Texture | ( | ) |
| Fast::Texture::~Texture | ( | ) |
|
overridevirtual |
Returns a typed pointer to the resource payload.
Implements Ship::Resource< uint8_t >.
|
overridevirtual |
Returns the size (in bytes) of the type pointed to by GetRawPointer().
Implements Ship::IResource.
| uint32_t Fast::Texture::Flags = 0 |
| float Fast::Texture::HByteScale = 1.0 |
| uint16_t Fast::Texture::Height |
| uint8_t* Fast::Texture::ImageData = nullptr |
| uint32_t Fast::Texture::ImageDataSize |
| std::shared_ptr<std::vector<char> > Fast::Texture::mImageBuffer |
| TextureType Fast::Texture::Type |
| float Fast::Texture::VPixelScale = 1.0 |
| uint16_t Fast::Texture::Width |