|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Stores intermediate data from loading the asset from disk. These are the vertices, indices and material data. More...
#include <GltfLoader.h>
Public Member Functions | |
| GltfMeshPrimitiveData ()=default | |
| GltfMeshPrimitiveData (tinygltf::Model model, tinygltf::Primitive primitive, StaticMeshExtensions meshSettings) | |
| Extracts all relevant data from the tinygltf importer objects. | |
| std::vector< Vertex > | getVertices () const |
| Gets a list of all unprocessed vertices of this primtitive. | |
| std::vector< uint32_t > | getIndices () const |
| Gets the raw unprocessed list of all indices. | |
| GltfMaterialData | getMaterialData () const |
| Texture * | getColorTexturePtr () const |
| 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. | |
| uint32_t | getColorTextureIndex () const |
Public Attributes | |
| friend | AssetManager |
Private Attributes | |
| uint32_t | textureIndex = 0 |
| Texture * | colorTexturePtr = nullptr |
| tinygltf::Primitive | primitive |
| GltfMaterialData | materialData |
| std::vector< Vertex > | vertices |
| std::vector< uint32_t > | indices |
Stores intermediate data from loading the asset from disk. These are the vertices, indices and material data.
Definition at line 350 of file GltfLoader.h.
|
default |
References primitive.
| EngineCore::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData | ( | tinygltf::Model | model, |
| tinygltf::Primitive | primitive, | ||
| StaticMeshExtensions | meshSettings ) |
Extracts all relevant data from the tinygltf importer objects.
| model | the 3d model which was loaded by tinygltf |
| primitive | the primitive in the 3d model from the tinygltf importer |
| meshSettings |
Definition at line 636 of file GltfLoader.cpp.
References indices, materialData, Vertex::normal, Vertex::position, primitive, Vertex::textureCoordinate, TRACY_ZONE_SCOPED_NAMED, vertices, and EngineCore::GltfLoader::StaticMeshExtensions::vulkanSchneeExtension.
|
nodiscard |
Definition at line 771 of file GltfLoader.cpp.
References textureIndex.
|
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.
Definition at line 767 of file GltfLoader.cpp.
References colorTexturePtr.
|
nodiscard |
Gets the raw unprocessed list of all indices.
Definition at line 759 of file GltfLoader.cpp.
References indices.
|
nodiscard |
Definition at line 763 of file GltfLoader.cpp.
References materialData.
Referenced by EngineCore::Texture::createTexturePath(), and EngineCore::MeshPrimitive::MeshPrimitive().
|
nodiscard |
Gets a list of all unprocessed vertices of this primtitive.
Definition at line 755 of file GltfLoader.cpp.
References vertices.
| friend EngineCore::GltfLoader::GltfMeshPrimitiveData::AssetManager |
Definition at line 351 of file GltfLoader.h.
|
private |
Definition at line 405 of file GltfLoader.h.
Referenced by getColorTexturePtr().
|
private |
Definition at line 410 of file GltfLoader.h.
Referenced by getIndices(), and GltfMeshPrimitiveData().
|
private |
Definition at line 408 of file GltfLoader.h.
Referenced by getMaterialData(), and GltfMeshPrimitiveData().
|
private |
Definition at line 407 of file GltfLoader.h.
Referenced by GltfMeshPrimitiveData(), and GltfMeshPrimitiveData().
|
private |
Definition at line 404 of file GltfLoader.h.
Referenced by getColorTextureIndex().
|
private |
Definition at line 409 of file GltfLoader.h.
Referenced by getVertices(), and GltfMeshPrimitiveData().