![]() |
Lysa
0.0
Lysa 3D Engine
|
Instance that holds a Mesh.
Inheritance diagram for MeshInstance:Public Member Functions | |
| MeshInstance (const MeshInstance &orig) | |
| MeshInstance (const Mesh &mesh, const std::string &name="") | |
| MeshInstance (const MeshInstance &mi, const std::string &name) | |
| const Mesh & | getMesh () const |
| bool | isVisible () const |
| void | setVisible (const bool visible) |
| bool | isCastShadows () const |
| void | setCastShadows (const bool castShadows) |
| const AABB & | getAABB () const |
| void | setAABB (const AABB &aabb) |
| const float4x4 & | getTransform () const |
| void | setTransform (const float4x4 &transform) |
| unique_id | getSurfaceMaterial (uint32 surfaceIndex) const |
| void | setSurfaceOverrideMaterial (const uint32 surfaceIndex, const unique_id materialId) |
| void | removeSurfaceOverrideMaterial (const uint32 surfaceIndex) |
| unique_id | getSurfaceOverrideMaterial (const uint32 surfaceIndex) const |
| MeshInstanceData | getData () const |
| ~MeshInstance () override | |
Public Member Functions inherited from UniqueResource | |
| UniqueResource () = default | |
| UniqueResource (UniqueResource &) = delete | |
| UniqueResource & | operator= (UniqueResource &) = delete |
Public Member Functions inherited from UnmanagedResource | |
| UnmanagedResource () | |
| UnmanagedResource (const Resource &other) | |
Public Member Functions inherited from Resource | |
| bool | operator== (const Resource &other) const |
| Resource () = default | |
| Resource (const unique_id id) | |
| virtual | ~Resource () = default |
Additional Inherited Members | |
Public Attributes inherited from Resource | |
| unique_id | id {INVALID_ID} |
| MeshInstance | ( | const MeshInstance & | orig | ) |
| MeshInstance | ( | const Mesh & | mesh, |
| const std::string & | name = "" |
||
| ) |
Constructor
| mesh | Reference to the mesh |
| name | Optional name for the instance |
| MeshInstance | ( | const MeshInstance & | mi, |
| const std::string & | name | ||
| ) |
|
override |
Destructor
| MeshInstanceData getData | ( | ) | const |
Returns the mesh instance data for GPU consumption
|
inline |
Returns the mesh associated with the instance
Returns the material ID used by a specific surface
Returns the override material ID for a specific surface
|
inline |
Returns the world transformation matrix of the instance
|
inline |
Returns true if the instance casts shadows
|
inline |
Returns true if the instance is visible
|
inline |
Removes the override material ID for a specific surface
|
inline |
Sets whether the instance casts shadows
Sets an override material ID for a specific surface
|
inline |
Sets the world transformation matrix of the instance
|
inline |
Sets the visibility of the instance