36 lines
478 B
C++
36 lines
478 B
C++
#include "TestClay.h"
|
|
|
|
#define CLAY_IMPLIMENTATION
|
|
#include "clay.h"
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
TestClay::TestClay(void* h, Archimedes::App& a) : Archimedes::GuiModule(h, a) {
|
|
|
|
name = "TestClay";
|
|
}
|
|
|
|
TestClay::~TestClay() {
|
|
}
|
|
|
|
void TestClay::onLoad() {
|
|
|
|
createWindow();
|
|
|
|
window->getRenderer().init();
|
|
|
|
|
|
}
|
|
|
|
void TestClay::run() {
|
|
|
|
window->getRenderer().addRenderCmd([](){
|
|
|
|
});
|
|
|
|
if(window->shouldClose())
|
|
app.end();
|
|
window->doFrame();
|
|
|
|
}
|