2022-11-10 20:51:11 +00:00
|
|
|
#pragma once
|
2022-11-11 12:10:05 +00:00
|
|
|
#include <vector>
|
|
|
|
#include "Asset.h"
|
2022-11-10 20:51:11 +00:00
|
|
|
|
|
|
|
class AssetManager {
|
|
|
|
public:
|
|
|
|
|
2022-11-11 12:10:05 +00:00
|
|
|
static void Init();
|
|
|
|
static void BuildAssetView();
|
|
|
|
static void setAssetPath(std::filesystem::path path);
|
2022-11-10 20:51:11 +00:00
|
|
|
|
2022-11-11 12:10:05 +00:00
|
|
|
static YoggieEngine::Mesh* LoadFromAssetFile(const std::filesystem::path assetPath);
|
|
|
|
static YoggieEngine::Renderable* LoadFromSource(const std::filesystem::path srcPath, const std::filesystem::path assetFolder);
|
|
|
|
|
|
|
|
static std::vector<Asset> assets ;
|
2022-11-10 20:51:11 +00:00
|
|
|
|
2022-11-11 12:10:05 +00:00
|
|
|
private:
|
|
|
|
static std::filesystem::path currentPath;
|
2022-11-10 20:51:11 +00:00
|
|
|
|
|
|
|
};
|