{"repo":"Zyko0/go-sdl3","free":true,"listed":false,"github":"https://github.com/Zyko0/go-sdl3","clone":"git clone https://github.com/Zyko0/go-sdl3.git","description":"SDL3 bindings for Go","language":"Go","stars":143,"topics":["game","game-development","gamedev","go","golang","sdl3"],"license":"MIT","category":"game-templates","readme_excerpt":"go-sdl3 SDL3 bindings for Go in pure Go (thanks to ebitengine/purego). About This library wraps SDL3 packages to a more idiomatic go and: - Changes return values from bool to error . - Trims SDL prefix from all types, variables, function names. - Make methods from global functions when it is possible. - Turn some pointer function parameters into return values. - Remove the necessity to call sdl.Free on returned pointers. If you are looking for pure Go bindings that are closer to the original API, please have a look at https://github.com/JupiterRider/purego-sdl3. Status [!NOTE] The list of currently implemented functions can be found in COVERAGE.md. Libraries: - SDL3 (v3.4.0) - SDL3 ttf (v3.2.2) - SDL3 image (v3.2.6) - SDL3 mixer (v3.2.0) - SDL3 shadercross Platforms: - Windows (amd64, arm64) - Linux (amd64, arm64) - MacOS (amd64, arm64) - WebAssembly (experimental) Usage The library is linked dynamically with purego (does not require CGo). Embedded: The code below will write the library to a temporary folder, and remove it when the main function returns. Manual: If the library is installed or if the location is known (e.g: same folder), it can be loaded by its path. Example: Note that you do not have to pass your update function to sdl.RunLoop , however doing so allows you to target GOOS=js / GOARCH=wasm , see wasmsdl. Examples The examples folder contains: - Some official examples (https://examples.libsdl.org/SDL3) - examples/renderer - examples/input - GPU API examples (htt","default_branch":null,"files":null,"tree":[],"storefront":"/r/Zyko0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Zyko0/go-sdl3/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}