6
6
#include " Context.h"
7
7
#include " utils/binarytools/MemoryStream.h"
8
8
#include " utils/binarytools/BinaryReader.h"
9
- #include " factory/TextureFactory.h"
10
- #include " factory/VertexFactory.h"
11
- #include " factory/ArrayFactory.h"
12
- #include " factory/BlobFactory.h"
13
- #include " factory/DisplayListFactory.h"
14
- #include " factory/MatrixFactory.h"
15
9
#include " factory/JsonFactory.h"
16
10
17
11
namespace Ship {
@@ -24,24 +18,6 @@ ResourceLoader::~ResourceLoader() {
24
18
}
25
19
26
20
void ResourceLoader::RegisterGlobalResourceFactories () {
27
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY, " Texture" ,
28
- static_cast <uint32_t >(LUS::ResourceType::Texture), 0 );
29
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY, " Texture" ,
30
- static_cast <uint32_t >(LUS::ResourceType::Texture), 1 );
31
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryVertexV0>(), RESOURCE_FORMAT_BINARY, " Vertex" ,
32
- static_cast <uint32_t >(LUS::ResourceType::Vertex), 0 );
33
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryXMLVertexV0>(), RESOURCE_FORMAT_XML, " Vertex" ,
34
- static_cast <uint32_t >(LUS::ResourceType::Vertex), 0 );
35
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryDisplayListV0>(), RESOURCE_FORMAT_BINARY,
36
- " DisplayList" , static_cast <uint32_t >(LUS::ResourceType::DisplayList), 0 );
37
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryXMLDisplayListV0>(), RESOURCE_FORMAT_XML,
38
- " DisplayList" , static_cast <uint32_t >(LUS::ResourceType::DisplayList), 0 );
39
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryMatrixV0>(), RESOURCE_FORMAT_BINARY, " Matrix" ,
40
- static_cast <uint32_t >(LUS::ResourceType::Matrix), 0 );
41
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryArrayV0>(), RESOURCE_FORMAT_BINARY, " Array" ,
42
- static_cast <uint32_t >(LUS::ResourceType::Array), 0 );
43
- RegisterResourceFactory (std::make_shared<LUS::ResourceFactoryBinaryBlobV0>(), RESOURCE_FORMAT_BINARY, " Blob" ,
44
- static_cast <uint32_t >(LUS::ResourceType::Blob), 0 );
45
21
RegisterResourceFactory (std::make_shared<Ship::ResourceFactoryBinaryJsonV0>(), RESOURCE_FORMAT_BINARY, " Json" ,
46
22
static_cast <uint32_t >(Ship::ResourceType::Json), 0 );
47
23
}
0 commit comments