compilation fixes

This commit is contained in:
devZoGok
2022-03-17 19:12:28 +02:00
parent 993dddb130
commit 95815c9ea3
10 changed files with 96 additions and 37 deletions
+6
View File
@@ -3,6 +3,7 @@
#include "util.h"
#include "imageReader.h"
#include "fontReader.h"
#include "xmlModelReader.h"
#include <algorithm>
@@ -34,6 +35,11 @@ namespace vb01{
if(find(fontFormats.begin(), fontFormats.end(), format) != fontFormats.end())
assetReader = FontReader::getSingleton();
vector<string> modelFormats = vector<string>{"xml"};
if(find(modelFormats.begin(), modelFormats.end(), format) != modelFormats.end())
assetReader = XmlModelReader::getSingleton();
assets.push_back(assetReader->readAsset(path));
}