move utils to include. utils implimentations should be headers
This commit is contained in:
28
include/utils/GuiModule/GuiModule.h
Normal file
28
include/utils/GuiModule/GuiModule.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef GUIMODULE_H
|
||||
#define GUIMODULE_H
|
||||
|
||||
#include "Module.h"
|
||||
#include "Window/Window.h"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
class GuiModule : public Module {
|
||||
|
||||
public:
|
||||
typedef GuiModule* create_t(void*, App&);
|
||||
|
||||
GuiModule(void* h, App& a) : Module(h, a) {}
|
||||
virtual ~GuiModule() { if(window) delete window; }
|
||||
virtual void onLoad() = 0;
|
||||
virtual void run() = 0;
|
||||
|
||||
Window* getWindow() { return window; }
|
||||
void createWindow() { window = new Window(); }
|
||||
|
||||
protected:
|
||||
Window* window;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user