-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMeshManager.cpp
More file actions
34 lines (29 loc) · 773 Bytes
/
MeshManager.cpp
File metadata and controls
34 lines (29 loc) · 773 Bytes
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
#include "MeshManager.h"
MeshManager::MeshManager() : ResourceManager() { }
MeshManager::~MeshManager() = default;
MeshPtr MeshManager::createMeshFromFile(const wchar_t* file_path)
{
return std::static_pointer_cast<Mesh>(createResourceFromFile(file_path));
}
MeshPtr MeshManager::createMesh(
VertexMesh* vertex_list_data,
unsigned int vertex_list_size,
unsigned int* index_list_data,
unsigned int index_list_size,
MaterialSlot* material_slot_list,
unsigned int material_slot_list_size
)
{
return MeshPtr(new Mesh(
vertex_list_data,
vertex_list_size,
index_list_data,
index_list_size,
material_slot_list,
material_slot_list_size)
);
}
Resource* MeshManager::createResourceFromFileConcrete(const wchar_t* file_path)
{
return new Mesh(file_path);
}