initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user