From 2838358993ade2ac1b770d675af9126749074e8f Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Tue, 23 Dec 2025 20:58:32 -0500 Subject: Fix lotsa memory leaks mhm --- editor/editor.odin | 32 -------------------------------- editor/run.sh | 3 --- 2 files changed, 35 deletions(-) delete mode 100644 editor/editor.odin delete mode 100755 editor/run.sh (limited to 'editor') diff --git a/editor/editor.odin b/editor/editor.odin deleted file mode 100644 index f508514..0000000 --- a/editor/editor.odin +++ /dev/null @@ -1,32 +0,0 @@ -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() - } -} diff --git a/editor/run.sh b/editor/run.sh deleted file mode 100755 index 5c479e9..0000000 --- a/editor/run.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -odin run editor -vet -disallow-do -o:speed -- cgit v1.3-2-g0d8e