Available
amalgame-ui-sdl
SDL2 / SDL3 binding — foundation for custom graphics.
Overview
Dynamic-link binding to SDL2 (SDL3 supported once stable). Windows, events, keyboard/mouse/gamepad input, accelerated 2D renderer. The foundation for anything that doesn't fit in a webview: games, real-time visualizations, creative tools.
Features
- ✓SDL2 (and SDL3) via dynamic-link binding
- ✓Windows, events, surface, 2D renderer
- ✓Audio (optional mixer)
- ✓Keyboard, mouse, gamepad input
- ✓Base for
ui-glandui-gfx2d
Example
Minimal usage example — copy-paste runnable after install.
amc package add ui-sdl
let win = Sdl.CreateWindow("Demo", 800, 600)
while !win.ShouldClose() {
win.PollEvents()
win.Clear(0x202020)
win.Present()
}
At a glance
- License: Apache-2.0
- Install:
amc package add ui-sdl - Source: amalgame-lang/amalgame-ui-sdl
- Official index: amalgame-lang/packages-index