Stores intermediate data from loading the asset from disk. These are the vertices, indices and material data.
More...
#include <GltfLoader.h>
Stores intermediate data from loading the asset from disk. These are the vertices, indices and material data.
Definition at line 395 of file GltfLoader.h.
◆ GltfMeshPrimitiveData() [1/2]
| Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData |
( |
| ) |
|
|
default |
◆ GltfMeshPrimitiveData() [2/2]
| Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData |
( |
tinygltf::Model | model, |
|
|
tinygltf::Primitive | primitive, |
|
|
StaticMeshExtensions | meshSettings ) |
Extracts all relevant data from the tinygltf importer objects.
- Parameters
-
| model | the 3d model which was loaded by tinygltf |
| primitive | the primitive in the 3d model from the tinygltf importer |
| meshSettings | |
References primitive.
◆ getBoneVertexData()
| const std::vector< BoneVertexData > & Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getBoneVertexData |
( |
| ) |
const |
|
inlinenodiscard |
◆ getColorTextureIndex()
| uint32_t Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getColorTextureIndex |
( |
| ) |
const |
|
nodiscard |
◆ getColorTexturePtr()
| RuntimeTexture * Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getColorTexturePtr |
( |
| ) |
const |
|
nodiscard |
Gets the pointer to the primitive of the color texture. This is only a valid pointer after it has been set by the asset manager.
- Returns
- Pointer to the texture of this primitive
◆ getIndices()
| std::vector< uint32_t > Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getIndices |
( |
| ) |
const |
|
nodiscard |
Gets the raw unprocessed list of all indices.
- Returns
- Index list of how to connect the vertices to tris
◆ getMaterialData()
| GltfMaterialData Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getMaterialData |
( |
| ) |
const |
|
nodiscard |
◆ getVertices()
| std::vector< Vertex > Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::getVertices |
( |
| ) |
const |
|
nodiscard |
Gets a list of all unprocessed vertices of this primtitive.
- Returns
- List of all vertices of this primitive
◆ hasSkinData()
| bool Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::hasSkinData |
( |
| ) |
const |
|
inlinenodiscard |
◆ boneVertexData
| std::vector<BoneVertexData> Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::boneVertexData |
|
private |
◆ colorTexturePtr
| RuntimeTexture* Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::colorTexturePtr = nullptr |
|
private |
◆ indices
| std::vector<uint32_t> Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::indices |
|
private |
◆ materialData
| GltfMaterialData Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::materialData |
|
private |
◆ primitive
| tinygltf::Primitive Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::primitive |
|
private |
◆ textureIndex
| uint32_t Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::textureIndex = std::numeric_limits<uint32_t>::max() |
|
private |
◆ vertices
| std::vector<Vertex> Engine::Assets::Loaders::GltfLoader::GltfMeshPrimitiveData::vertices |
|
private |
The documentation for this struct was generated from the following file:
- /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Mesh/GltfLoader.h