Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::MeshLoaderGltf Class Reference

#include <GltfMeshLoader.h>

Inheritance diagram for EngineCore::MeshLoaderGltf:
Collaboration diagram for EngineCore::MeshLoaderGltf:

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

Detailed Description

Definition at line 10 of file GltfMeshLoader.h.

Member Function Documentation

◆ getModel()

tinygltf::Model & EngineCore::MeshLoaderGltf::getModel ( const std::filesystem::path & filePath,
tinygltf::Model & model,
tinygltf::TinyGLTF & loader ) const
private

Definition at line 175 of file GltfMeshLoader.cpp.

Referenced by loadMesh().

Here is the caller graph for this function:

◆ getVec2FromMemory()

glm::vec2 EngineCore::MeshLoaderGltf::getVec2FromMemory ( const float * memory,
size_t accessIndex )
private

Definition at line 213 of file GltfMeshLoader.cpp.

Referenced by loadMesh().

Here is the caller graph for this function:

◆ getVec3FromMemory()

glm::vec3 EngineCore::MeshLoaderGltf::getVec3FromMemory ( const float * memory,
size_t accessIndex,
bool invert_x = false,
bool invert_y = false,
bool invert_z = false )
private

Definition at line 206 of file GltfMeshLoader.cpp.

Referenced by loadMesh().

Here is the caller graph for this function:

◆ loadMesh()

void EngineCore::MeshLoaderGltf::loadMesh ( const std::filesystem::path & filePath,
std::vector< Vertex > & vertices,
std::vector< uint32_t > & indices,
std::vector< std::unique_ptr< TextureLoadData > > & textureLoadData )
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().

Here is the call graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: