52 lines
846 B
C++
52 lines
846 B
C++
#ifndef GUIMODULE
|
|
#define GUIMODULE
|
|
#endif
|
|
|
|
#include "Archimedes.h"
|
|
|
|
#include "utils/Window/Window.h"
|
|
|
|
class TestImgui : public Archimedes::GuiModule {
|
|
|
|
public:
|
|
TestImgui(void*, Archimedes::App*);
|
|
|
|
~TestImgui();
|
|
|
|
void onLoad();
|
|
|
|
void run();
|
|
|
|
|
|
private:
|
|
bool demo = true;
|
|
|
|
Archimedes::Window* window;
|
|
|
|
class TILayer : public Archimedes::Layer {
|
|
public:
|
|
|
|
TILayer(TestImgui* _ti) : ti(_ti) {}
|
|
|
|
~TILayer();
|
|
|
|
void onRender();
|
|
|
|
void onAttach();
|
|
|
|
void onDetach();
|
|
|
|
bool onEvent(const Archimedes::Event&);
|
|
|
|
private:
|
|
|
|
TestImgui* ti;
|
|
|
|
} layer = TILayer(this);
|
|
};
|
|
|
|
#ifdef TESTIMGUI_DYNAMIC
|
|
#define MODULE_TYPE TestImgui
|
|
#include "endModule.h"
|
|
#endif
|