This is a Go port of the C layout library (Clay).
- Be entirely Go (no Cgo)
- Idiomatic Go public API
- No unsafe in the public API
- Be fast
Clay includes multiple prebuilt renderers:
- SDL2 - veandco/go-sdl2
- SDL3 - Zyko0/go-sdl3
- Ebitengine - hajimehoshi/ebiten
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
This project is governed by the MIT license. See LICENSE for full description.