[nostaliga/core] Add Drawer system and make ImGui use configurable
This commit is contained in:
@@ -12,10 +12,19 @@
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
class Context;
|
||||
|
||||
class Drawer {
|
||||
public:
|
||||
virtual ~Drawer() = default;
|
||||
virtual void draw(Context*) noexcept = 0;
|
||||
};
|
||||
|
||||
// User Input Output
|
||||
class Context {
|
||||
public:
|
||||
ox::FileSystem *rom = nullptr;
|
||||
ox::Vector<Drawer*, 5> drawer;
|
||||
private:
|
||||
void *m_windowerData = nullptr;
|
||||
void *m_rendererData = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user