clay
March 29, 2025 ยท View on GitHub
This is a Go port of the C layout library (Clay).
Goals
- Be entirely Go (no Cgo)
- Idiomatic Go public API
- No unsafe in the public API
- Be fast
Renderers
Clay includes multiple prebuilt renderers:
- Ebitengine - hajimehoshi/ebiten
- SDL2 - veandco/go-sdl2
- SDL3 - Zyko0/go-sdl3
- Software - golang.org/x/image
Generate clay.go
Everything in clay.go is generated from the main project's clay.h file using CxGo.
Just run the command below to regenerate it.
go tool cxgo
License
This project is governed by the MIT license. See LICENSE for full description.