aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.odin
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.odin')
-rw-r--r--editor/editor.odin32
1 files changed, 32 insertions, 0 deletions
diff --git a/editor/editor.odin b/editor/editor.odin
new file mode 100644
index 0000000..f508514
--- /dev/null
+++ b/editor/editor.odin
@@ -0,0 +1,32 @@
+package editor
+
+import rl "vendor:raylib"
+import mu "vendor:microui"
+
+state := struct{
+ muctx: mu.Context
+}
+
+main :: proc() {
+ rl.InitWindow(800, 400, "Editor")
+ defer rl.CloseWindow()
+
+ ctx := &state.muctx
+ mu.init(ctx)
+
+ ctx.text_width = mu.default_atlas_text_width
+ ctx.text_height = mu.default_atlas_text_height
+
+ atlas_texture = rl.LoadRenderTexture(int(mu.DEFAULT_ATLAS_WIDTH), int(mu.DEFAULT_ATLAS_HEIGHT))
+ defer rl.UnloadRenderTexture(state.atlas_texture)
+
+ for rl.WindowShouldClose() {
+ mu.begin(ctx)
+ mu.label(ctx, "Test")
+ mu.end(ctx)
+
+ rl.BeginDrawing()
+
+ rl.EndDrawing()
+ }
+}