-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSceneImporter.cpp
More file actions
68 lines (53 loc) · 1.7 KB
/
SceneImporter.cpp
File metadata and controls
68 lines (53 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "SceneImporter.h"
#include "ModelImporter.h"
#include "MeshImporter.h"
#include "MaterialImporter.h"
using namespace std;
SceneImporter::SceneImporter()
{
modelImp = new ModelImporter();
meshImp = new MeshImporter();
materialImp = new MaterialImporter();
}
SceneImporter::~SceneImporter()
{
delete modelImp;
delete meshImp;
delete materialImp;
}
bool SceneImporter::ImportModel(const char * path, const char * file, string & output_file)
{
return modelImp->Import(path, file, output_file);
}
bool SceneImporter::ImportMesh(const char * file, const MeshData & mesh, string & output_file)
{
return meshImp->Import(file, mesh, output_file);
}
bool SceneImporter::ImportMaterial(const char * path, const char * file, string & output_file)
{
return materialImp->Import(path, file, output_file);
}
bool SceneImporter::ImportModel(const char * file, const void * buffer, unsigned int size, string & output_file)
{
return modelImp->Import(file, buffer, size, output_file);
}
bool SceneImporter::ImportMesh(const char * file, const void * buffer, unsigned int size, string & output_file)
{
return meshImp->Import(file, buffer, size, output_file);
}
bool SceneImporter::ImportMaterial(const char * file, const void * buffer, unsigned int size, string & output_file)
{
return materialImp->Import(file, buffer, size, output_file);
}
bool SceneImporter::LoadModel(const char * exported_file, ModelData & model)
{
return modelImp->Load(exported_file, model);
}
bool SceneImporter::LoadMesh(const char * exported_file, MeshData & mesh)
{
return meshImp->Load(exported_file, mesh);
}
bool SceneImporter::LoadMaterial(const char * exported_file, Texture & material)
{
return materialImp->Load(exported_file, material);
}