API Documentation
EntityRenderInfoSlot.h
1 // EntityRenderInfoSlot.h
3 //
5 
6 namespace nkGraphics
7 {
14  {
15  public :
16 
17  // Constructor, destructor
21  EntityRenderInfoSlot () noexcept ;
27  EntityRenderInfoSlot (const EntityRenderInfoSlot& other) noexcept ;
41  EntityRenderInfoSlot (Mesh* mesh, Shader* shader) noexcept ;
45  virtual ~EntityRenderInfoSlot () ;
46 
47  // Getters
52  EntityRenderLodSlot* getLod (unsigned int index) const ;
56  const nkMemory::BufferCast<EntityRenderLodSlot*>& getLods () const ;
60  Entity* getParentEntity () const ;
61 
62  // Manipulations
75  void eraseLod (unsigned int index) ;
76 
77  // Operators
83  EntityRenderInfoSlot& operator= (const EntityRenderInfoSlot& other) noexcept ;
89  EntityRenderInfoSlot& operator= (EntityRenderInfoSlot&& other) noexcept ;
90 
91  // Import / Export
92  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
93  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
94  } ;
95 }
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::EntityRenderLodSlot
A LOD slot to potentially draw, within a group slot.
Definition: EntityRenderLodSlot.h:15
nkExport
Encompasses all API of component NilkinsExport.
Definition: Base64Encoder.h:7
nkGraphics::EntityRenderInfoSlot::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:16
nkGraphics::EntityRenderInfoSlot::getLods
const nkMemory::BufferCast< EntityRenderLodSlot * > & getLods() const
nkGraphics::EntityRenderInfoSlot::getParentEntity
Entity * getParentEntity() const
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkGraphics::EntityRenderInfoSlot::getLod
EntityRenderLodSlot * getLod(unsigned int index) const
nkGraphics::EntityRenderInfoSlot::eraseLod
void eraseLod(unsigned int index)
nkGraphics::EntityRenderInfoSlot::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot
EntityRenderInfoSlot() noexcept
nkGraphics::EntityRenderInfoSlot
A slot within the render information.
Definition: EntityRenderInfoSlot.h:14
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:16
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
nkGraphics::EntityRenderInfoSlot::addLod
EntityRenderLodSlot * addLod(const EntityRenderLodSlot &lodSlot=EntityRenderLodSlot())
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7