|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
#include <GltfMeshLoader.h>
Public Member Functions | |
| void | useDefaultTexture (std::vector< std::unique_ptr< TextureLoadData > > &textureLoadData) |
| void | loadMesh (const std::filesystem::path &filePath, std::vector< Vertex > &vertices, std::vector< uint32_t > &indices, std::vector< std::unique_ptr< TextureLoadData > > &textureLoadData) override |
| Public Member Functions inherited from EngineCore::MeshLoader | |
| virtual | ~MeshLoader () |
Private Member Functions | |
| glm::vec3 | getVec3FromMemory (const float *memory, size_t accessIndex, bool invert_x=false, bool invert_y=false, bool invert_z=false) |
| glm::vec2 | getVec2FromMemory (const float *memory, size_t accessIndex) |
| tinygltf::Model & | getModel (const std::filesystem::path &filePath, tinygltf::Model &model, tinygltf::TinyGLTF &loader) const |
Definition at line 10 of file GltfMeshLoader.h.
|
private |
Definition at line 175 of file GltfMeshLoader.cpp.
Referenced by loadMesh().
|
private |
Definition at line 213 of file GltfMeshLoader.cpp.
Referenced by loadMesh().
|
private |
Definition at line 206 of file GltfMeshLoader.cpp.
Referenced by loadMesh().
|
overridevirtual |
Reimplemented from EngineCore::MeshLoader.
Definition at line 20 of file GltfMeshLoader.cpp.
References getModel(), getVec2FromMemory(), getVec3FromMemory(), Vertex::normal, Vertex::position, Vertex::textureCoordinate, and useDefaultTexture().
| void EngineCore::MeshLoaderGltf::useDefaultTexture | ( | std::vector< std::unique_ptr< TextureLoadData > > & | textureLoadData | ) |
Definition at line 12 of file GltfMeshLoader.cpp.
References EngineCore::Mesh::getTextureCount(), and EngineCore::TextureLoader::loadImage().
Referenced by loadMesh().