|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Mesh data extracted from a glTF mesh node. More...
#include <GltfLoader.h>
Public Member Functions | |
| GltfMeshData (const tinygltf::Model &model, const tinygltf::Mesh &mesh, const tinygltf::Node &node, const glm::mat4 &transform) | |
| Parses one mesh node into engine primitive data. | |
| std::vector< GltfMeshPrimitiveData > | getPrimitives () const |
| Gets a copy of parsed primitives. | |
| std::vector< GltfMeshPrimitiveData > & | getPrimitivesRef () |
| Gets mutable parsed primitives. | |
| std::string | getName () const |
| Gets the mesh node name. | |
| glm::mat4 | getTransform () const |
| Gets the model matrix for the object from the file it was imported from. | |
| int | getSkinIndex () const |
| Gets the glTF skin index referenced by the mesh node. | |
Private Attributes | |
| std::string | name |
| tinygltf::Mesh | mesh |
| std::vector< GltfMeshPrimitiveData > | primitives |
| glm::mat4 | transform |
| int | skinIndex = -1 |
| glTF skin index (-1 = no skin) | |
Mesh data extracted from a glTF mesh node.
Definition at line 821 of file GltfLoader.h.
| Engine::Assets::Loaders::GltfLoader::GltfMeshData::GltfMeshData | ( | const tinygltf::Model & | model, |
| const tinygltf::Mesh & | mesh, | ||
| const tinygltf::Node & | node, | ||
| const glm::mat4 & | transform ) |
|
inlinenodiscard |
Gets the mesh node name.
Definition at line 859 of file GltfLoader.h.
References name.
|
inlinenodiscard |
Gets a copy of parsed primitives.
Definition at line 841 of file GltfLoader.h.
References primitives.
|
inlinenodiscard |
Gets mutable parsed primitives.
Definition at line 850 of file GltfLoader.h.
References primitives.
|
inlinenodiscard |
Gets the glTF skin index referenced by the mesh node.
Definition at line 881 of file GltfLoader.h.
References skinIndex.
|
inlinenodiscard |
Gets the model matrix for the object from the file it was imported from.
Definition at line 872 of file GltfLoader.h.
References transform.
|
private |
Definition at line 888 of file GltfLoader.h.
Referenced by GltfMeshData().
|
private |
Definition at line 887 of file GltfLoader.h.
Referenced by getName().
|
private |
Definition at line 889 of file GltfLoader.h.
Referenced by getPrimitives(), and getPrimitivesRef().
|
private |
glTF skin index (-1 = no skin)
Definition at line 891 of file GltfLoader.h.
Referenced by getSkinIndex().
|
private |
Definition at line 890 of file GltfLoader.h.
Referenced by getTransform(), and GltfMeshData().