Rearrange & setup

This commit is contained in:
2026-05-03 23:00:41 +01:00
parent f953f72322
commit 9e85763f9e
12 changed files with 125 additions and 28 deletions
+25
View File
@@ -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) {}
};