22 lines
948 B
C++
22 lines
948 B
C++
#ifndef HYDRAGLTFLOADER
|
|
#define HYDRAGLTFLOADER
|
|
#include "../engine/HydraObject.h"
|
|
|
|
#include <string>
|
|
#include <assimp/Importer.hpp> // C++ importer interface
|
|
#include <assimp/scene.h> // Output data structure
|
|
#include <assimp/postprocess.h> // Post processing flags
|
|
class HydraGLTFLoader : public HydraObject
|
|
{
|
|
public:
|
|
HydraID LoadGLTFFile(std::string filename);
|
|
private:
|
|
void _ProcessGLTFTextures(aiScene const *scene, std::vector<uint32_t> &texture_lookup, HydraID actor_id);
|
|
void _ProcessGLTFMaterials(aiScene const *scene, std::vector<uint32_t>& texture_lookup, std::vector<uint32_t>& material_lookup, std::string filename);
|
|
HydraID _ProcessGLTFNode(aiScene const *scene, aiNode *parent_node, std::vector<uint32_t>material_lookup);
|
|
void _ProcessGLTFMesh(aiScene const *scene, HydraID parent_actor_id, aiMesh *mesh, std::vector<uint32_t>material_lookup);
|
|
|
|
};
|
|
|
|
#endif /* HYDRAGLTFLOADER */
|