Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/include/assetmanager.h

30 lines
582 B
C++
Executable file

#pragma once
#include <string>
struct MeshAsset;
struct MaterialAsset;
class Renderer;
struct AudioAsset;
class AudioSystem;
class AssetManager {
public:
void setRenderer(Renderer* r) {
renderer = r;
}
void setAudioSystem(AudioSystem* a) {
audioSystem = a;
}
MeshAsset* loadMesh(const std::string& path);
MaterialAsset* loadMaterial(const std::string& path);
AudioAsset* loadAudio(const std::string& path);
private:
Renderer* renderer = nullptr;
AudioSystem* audioSystem = nullptr;
};
inline AssetManager assetManager;