Available

amalgame-ui-sdl

SDL2 / SDL3 binding — foundation for custom graphics.

amc package add ui-sdl GitHub ↗ ← Back to the ecosystem

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-gl and ui-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

Related packages