A slot within the render information. More...
Public Member Functions | |
EntityRenderInfoSlot () noexcept | |
EntityRenderInfoSlot (const EntityRenderInfoSlot &other) noexcept | |
EntityRenderInfoSlot (EntityRenderInfoSlot &&other) noexcept | |
EntityRenderInfoSlot (Mesh *mesh, Shader *shader) noexcept | |
virtual | ~EntityRenderInfoSlot () |
EntityRenderLodSlot * | getLod (unsigned int index) const |
const nkMemory::BufferCast< EntityRenderLodSlot * > & | getLods () const |
Entity * | getParentEntity () const |
EntityRenderLodSlot * | addLod (const EntityRenderLodSlot &lodSlot=EntityRenderLodSlot()) |
void | eraseLod (unsigned int index) |
EntityRenderInfoSlot & | operator= (const EntityRenderInfoSlot &other) noexcept |
EntityRenderInfoSlot & | operator= (EntityRenderInfoSlot &&other) noexcept |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
Exportable () noexcept | |
virtual | ~Exportable () |
A slot within the render information.
A slot can be seen as something that will be rendered by the default render strategy during a pass, after its LOD has been selected.
|
noexcept |
Default constructor.
|
noexcept |
Copy constructor.
other | The slot to copy from. |
|
noexcept |
Move constructor.
other | The slot to move from. |
Legacy convenience constructor. This will simply create a unique LOD within the slot.
mesh | The mesh to use. |
shader | The shader to use. |
|
virtual |
Destructor.
EntityRenderLodSlot* nkGraphics::EntityRenderInfoSlot::getLod | ( | unsigned int | index | ) | const |
index | The index of the lod to retrieve. |
const nkMemory::BufferCast<EntityRenderLodSlot*>& nkGraphics::EntityRenderInfoSlot::getLods | ( | ) | const |
Entity* nkGraphics::EntityRenderInfoSlot::getParentEntity | ( | ) | const |
EntityRenderLodSlot* nkGraphics::EntityRenderInfoSlot::addLod | ( | const EntityRenderLodSlot & | lodSlot = EntityRenderLodSlot() | ) |
Adds a LOD to the slot.
lodSlot | A reference to copy from if required. |
void nkGraphics::EntityRenderInfoSlot::eraseLod | ( | unsigned int | index | ) |
Erases an existing LOD.
index | The index of the LOD to erase. |
|
noexcept |
Copy assignment operator.
other | The slot to copy from. |
|
noexcept |
Move assignment operator.
other | The slot to move from. |
|
overridevirtual |
Exports an item into a tree describing its structure and its data.
rootNode | The node into which the object has to write its related information. |
Implements nkExport::Exportable.
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
rootNode | The root node of the tree holding the information. |
Implements nkExport::Exportable.