sokol
| Kind | ffi-zig |
|---|---|
| Capabilities | ffi |
| Categories | graphics gamedev multimedia |
| Keywords | graphics audio gamedev sokol zig-ffi |
Cross-platform graphics and audio library bindings for Kit using sokol-zig
Files
| File | Description |
|---|---|
.editorconfig | Editor formatting configuration |
.gitignore | Git ignore rules for build artifacts and dependencies |
.tool-versions | asdf tool versions (Zig, Kit) |
LICENSE | MIT license file |
README.md | This file |
examples/blend.kit | Example: blend |
examples/buffer-offsets.kit | Example: buffer offsets |
examples/clear.kit | Example: clear |
examples/cube.kit | Example: cube |
examples/debug-text-print.kit | Example: debug text print |
examples/debug-text-userfont.kit | Example: debug text userfont |
examples/debug-text.kit | Example: debug text |
examples/defer-pattern.kit | Example: defer pattern |
examples/instancing-compute.kit | Example: instancing compute |
examples/instancing.kit | Example: instancing |
examples/mrt.kit | Example: mrt |
examples/noninterleaved.kit | Example: noninterleaved |
examples/offscreen.kit | Example: offscreen |
examples/quad.kit | Example: quad |
examples/saudio.kit | Example: saudio |
examples/sgl-context.kit | Example: sgl context |
examples/sgl-points.kit | Example: sgl points |
examples/sgl.kit | Example: sgl |
examples/shapes.kit | Example: shapes |
examples/tex-cube.kit | Example: tex cube |
examples/triangle.kit | Example: triangle |
examples/vertex-pull.kit | Example: vertex pull |
kit.toml | Package manifest with metadata and dependencies |
src/sokol.kit | Sokol error type for typed error handling. |
tests/sokol.test.kit | Tests for sokol |
zig/kit_ffi.zig | Zig FFI module for kit ffi |
zig/sokol_wrapper.zig | Zig FFI module for sokol wrapper |
Dependencies
No Kit package dependencies.
Installation
kit add gitlab.com/kit-lang/packages/kit-sokol.gitUsage
import Kit.SokolLicense
MIT License - see LICENSE for details.
Exported Functions & Types
SokolError
Sokol error type for typed error handling.
Variants
SokolConfigError {message}SokolCallbackError {message}SokolGraphicsError {message}SokolNotImplementedError {message}rgb
Create a color from RGB values (0-255).
Int -> Int -> Int -> {r: Float, g: Float, b: Float, a: Float}
rgba
Create a color from RGBA values (0-255).
Int -> Int -> Int -> Int -> {r: Float, g: Float, b: Float, a: Float}
colors
Common colors.