libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Fast::DisplayList Class Referencefinal

#include <DisplayList.h>

Inheritance diagram for Fast::DisplayList:
[legend]
Collaboration diagram for Fast::DisplayList:
[legend]

Public Member Functions

 DisplayList ()
 
 ~DisplayList ()
 
Gfx * 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().
 
- Public Member Functions inherited from Ship::Resource< Gfx >
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< ResourceInitDataGetInitData ()
 Returns the initialization data used to load this resource.
 

Public Attributes

UcodeHandlers UCode
 
std::vector< Gfx > Instructions
 
std::vector< char * > Strings
 

Additional Inherited Members

- Static Public Attributes inherited from Ship::IResource
static const std::string gAltAssetPrefix = "alt/"
 Path prefix that identifies an "alt asset" override.
 

Constructor & Destructor Documentation

◆ DisplayList()

Fast::DisplayList::DisplayList ( )

◆ ~DisplayList()

Fast::DisplayList::~DisplayList ( )

Member Function Documentation

◆ GetPointer()

Gfx * Fast::DisplayList::GetPointer ( )
overridevirtual

Returns a typed pointer to the resource payload.

Returns
Pointer to T; never null for a successfully loaded resource.

Implements Ship::Resource< Gfx >.

◆ GetPointerSize()

size_t Fast::DisplayList::GetPointerSize ( )
overridevirtual

Returns the size (in bytes) of the type pointed to by GetRawPointer().

Returns
Size in bytes.

Implements Ship::IResource.

Member Data Documentation

◆ Instructions

std::vector<Gfx> Fast::DisplayList::Instructions

◆ Strings

std::vector<char*> Fast::DisplayList::Strings

◆ UCode

UcodeHandlers Fast::DisplayList::UCode

The documentation for this class was generated from the following file: