Rearrange & setup
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "binding/ruby.h"
|
||||
#include "utils.h"
|
||||
#include "window/window.h"
|
||||
|
||||
struct Element {
|
||||
Vec2<float> position;
|
||||
float rotation;
|
||||
Vec2<float> scale;
|
||||
float z;
|
||||
Ruby::Block on_click;
|
||||
Ruby::Block on_update;
|
||||
Ruby::Block on_hover;
|
||||
|
||||
virtual void render(Window &window) {}
|
||||
};
|
||||
|
||||
struct Scene {
|
||||
std::vector<Element> elements;
|
||||
};
|
||||
|
||||
struct App {
|
||||
Window window;
|
||||
|
||||
App(Vec2<float> size, const char *title) : window(size, title) {}
|
||||
};
|
||||
Reference in New Issue
Block a user