YoggieEngine/Editor/src/AssetManagement/AssetManager.h
Nigel Barink 628225af45 Asset explorer showing files
After loading a project the asset explorer now show all the project files.
2022-11-11 13:10:05 +01:00

20 lines
497 B
C++

#pragma once
#include <vector>
#include "Asset.h"
class AssetManager {
public:
static void Init();
static void BuildAssetView();
static void setAssetPath(std::filesystem::path path);
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 ;
private:
static std::filesystem::path currentPath;
};