|
API Documentation
|
|
|
216 virtual bool load ()
override ;
void addVertexBufferCopy(nkMemory::BufferView< unsigned char > view, unsigned int stride=0)
virtual void exportClassToTree(nkExport::Node *rootNode) override
void setInputLayout(const MeshInputLayout &layout)
void setBounds(const BoundingBox &value)
const BoundingBox & getBounds() const
void addVertexBuffer(nkMemory::BufferView< unsigned char > view, unsigned int stride=0)
INDEX_FORMAT
Enumerates all formats supported for indices in a mesh.
Definition: IndexFormat.h:12
unsigned int getVertexBufferStride(unsigned int index) const
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
void setId(unsigned int value)
void setIndexBufferCopy(nkMemory::BufferView< unsigned char > view)
virtual bool load() override
A bounding box. Often used to encompass object's bounds in the world.
Definition: BoundingBox.h:14
void setAutoComputeBounds(bool value)
virtual void importClassFromTree(nkExport::Node *rootNode) override
void setIndexBufferForward(nkMemory::Buffer &&buffer)
void setIndexFormat(INDEX_FORMAT value)
nkMemory::BufferView< unsigned char > getIndexBuffer() const
nkMemory::BufferView< unsigned char > getVertexBuffer(unsigned int index) const
const MeshInputLayout & getInputLayout() const
unsigned int getIndexCount() const
void setIndexBuffer(nkMemory::BufferView< unsigned char > view)
PRIMITIVE_TOPOLOGY
Enumerates all primitive topologies supported for meshes.
Definition: PrimitiveTopology.h:14
unsigned int getId() const
A buffer holding binary data.
Definition: Buffer.h:32
void setTopology(PRIMITIVE_TOPOLOGY value)
void removeVertexBuffer(unsigned int index)
unsigned int getVertexCount() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
unsigned int getVertexBufferCount() const
PRIMITIVE_TOPOLOGY getTopology() const
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
static nkMemory::UniquePtr< Mesh > create(System *system=nullptr)
void setVertexCount(int value)
Base class for a resource in the component.
Definition: Resource.h:12
void setIndexCount(int value)
void computeBounds(nkMemory::StringView positionAttributeName)
bool getAutoComputeBounds() const
void addVertexBufferForward(nkMemory::Buffer &&buffer, unsigned int stride=0)
INDEX_FORMAT getIndexFormat() const
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
virtual void freeShadowBuffers()