ggfx is the renderer of ggui: it draws
images, shaders and vectors on the GPU and presents them on surfaces that a
window system owns. Package svg rasterizes SVG documents on the CPU, into
an image.RGBA that an image is then made of. It began as a fork of
Ebitengine v2.10.2 for desktop and the browser
that keeps the GPU pipeline and vector, replaces the Kage
shader language with WGSL compiled by naga,
and drops audio, mobile and console support. It no longer follows
Ebitengine.
ggfx has no windows. ggwd is the window
system ggui uses, and it drives ggfx through the public renderer API in
package host alone.
Shaders are documented in docs/shaders.md.
See FORK.md for what changed against Ebitengine.
ggfx requires Go 1.27 or later, and so macOS 13 Ventura or later.
- macOS: Metal, OpenGL
- Windows: DirectX 11/12 (feature level 11.0), OpenGL
- Linux, FreeBSD, NetBSD, OpenBSD: OpenGL (ggwd requires cgo for glfw)
- Browser: WebGL via
GOOS=js GOARCH=wasm
A second driver, written in Zig, draws with Metal on macOS, DirectX 12 on
Windows and Vulkan on Linux (amd64 and arm64). ggfx loads it as a shared
library without cgo. Build with the ggfxzig tag to make it the default; the
library is then embedded in the program:
go build -tags ggfxzig ./...Add ggfxnoembed to leave the library out and ship it yourself, next to the
executable or at a path fixed at link time. The libraries are attached to each
release. See
docs/zig-driver-design.md.
Apache-2.0, the same as Ebitengine. See LICENSE and NOTICE.md.