#include <renderablemesh.h>
Public Member Functions | |
| RenderableMesh ()=default | |
| RenderableMesh (const RenderableMesh &rhs) | |
| RenderableMesh & | operator= (const RenderableMesh &rhs) |
| RenderableMesh (RenderableMesh &&other) | |
| RenderableMesh & | operator= (RenderableMesh &&other) |
| bool | operator== (const RenderableMesh &rhs) const |
| bool | operator!= (const RenderableMesh &rhs) const |
| bool | isValid () const |
| IMesh & | getMesh () |
| const IMesh & | getMesh () const |
| MaterialInstance & | getMaterialInstance () |
| const MaterialInstance & | getMaterialInstance () const |
| const std::vector< VkBuffer > & | getVertexBuffers () |
| const std::vector< VkDeviceSize > & | getVertexBufferOffsets () const |
| int | getVertexBufferBindingIndex (const std::string &meshVertexAttributeID) const |
Protected Member Functions | |
| RenderableMesh (IMesh &mesh, MaterialInstance &materialInstance) | |
Represents the coupling between a mesh and a material that can be rendered to screen. Call RenderService.createRenderableMesh() from your own renderable component to create a renderable mesh on initialization. Renderable meshes are hashable, equality is based on the contained mesh and material.
|
default |
Default constructor, by default this represents an invalid mesh / material combination. Can be used to declare a member of this type that is invalid on initialization.
| RenderableMesh | ( | const RenderableMesh & | rhs | ) |
| RenderableMesh | ( | RenderableMesh && | other | ) |
|
protected |
Constructor
| mesh | the mesh that is rendered |
| materialInstance | the material the mesh is rendered with |
| MaterialInstance& getMaterialInstance | ( | ) |
| const MaterialInstance& getMaterialInstance | ( | ) | const |
| IMesh& getMesh | ( | ) |
| const IMesh& getMesh | ( | ) | const |
| int getVertexBufferBindingIndex | ( | const std::string & | meshVertexAttributeID | ) | const |
Returns the vertex buffer binding index of the given mesh attribute, asserts and returs -1 if not found.
| meshVertexAttributeID | the vertex attribute buffer name |
| const std::vector<VkDeviceSize>& getVertexBufferOffsets | ( | ) | const |
| const std::vector<VkBuffer>& getVertexBuffers | ( | ) |
| bool isValid | ( | ) | const |
| bool operator!= | ( | const RenderableMesh & | rhs | ) | const |
| RenderableMesh& operator= | ( | const RenderableMesh & | rhs | ) |
| RenderableMesh& operator= | ( | RenderableMesh && | other | ) |
| bool operator== | ( | const RenderableMesh & | rhs | ) | const |