diff options
| author | Xander Swan <no email> | 2025-12-23 20:58:32 -0500 |
|---|---|---|
| committer | Xander Swan <no email> | 2025-12-23 20:58:32 -0500 |
| commit | 2838358993ade2ac1b770d675af9126749074e8f (patch) | |
| tree | b423ac832dd86cec1863c725fd2957eddd83c28f /editor/editor.odin | |
| parent | ce4d64bd41937d7dff18ca607122188dc338d696 (diff) | |
Fix lotsa memory leaks mhm
Diffstat (limited to 'editor/editor.odin')
| -rw-r--r-- | editor/editor.odin | 32 |
1 files changed, 0 insertions, 32 deletions
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() - } -} |
