Runnable SDL3 and GLFW examples for impeller-zig.
This package depends on:
impeller_zigsdl3glfw_zig
Run on the current machine:
zig build runSDL3 is the default backend.
Use GLFW instead:
zig build run -Dbackend=glfwThe SDL3 Linux example forces the X11 video driver for now.
Cross compile with Zig's standard target option. For example, Linux to Windows:
zig build -Dtarget=x86_64-windows-gnuAvailable Impeller SDK targets:
| Platform | -Dtarget |
|---|---|
| Linux x64 | x86_64-linux-gnu |
| Linux arm64 | aarch64-linux-gnu |
| macOS x64 | x86_64-macos |
| macOS arm64 | aarch64-macos |
| Windows x64 | x86_64-windows-gnu |
| Windows arm64 | aarch64-windows-gnu |
These examples also build SDL3/GLFW and platform windowing code, so not every SDK target can be cross compiled from every host. macOS targets need Apple's SDK/frameworks, and Linux arm64 currently needs extra windowing cross-build support.
zig build run may print Vulkan swapchain validation errors. This comes from the current Impeller SDK, not these examples, and may be fixed by a future SDK update.