Changing engine to shared library

This commit is contained in:
Dynamitos
2023-08-26 15:19:12 +02:00
parent 4ab924f251
commit dcbce27fb2
20 changed files with 93 additions and 47 deletions
+7 -1
View File
@@ -10,10 +10,11 @@
#include "MeshAsset.h"
#include <nlohmann/json.hpp>
#include <iostream>
#include <fstream>
using namespace Seele;
extern AssetRegistry* instance;
AssetRegistry* instance = new AssetRegistry();
AssetRegistry::~AssetRegistry()
{
@@ -96,6 +97,11 @@ AssetRegistry::AssetRegistry()
{
}
AssetRegistry* AssetRegistry::getInstance()
{
return instance;
}
void AssetRegistry::loadRegistry()
{
get().loadRegistryInternal();
+1
View File
@@ -45,6 +45,7 @@ public:
};
AssetFolder* getOrCreateFolder(std::string foldername);
AssetRegistry();
static AssetRegistry* getInstance();
private:
static AssetRegistry& get();