{"repo":"ikskuh/SDL.zig","free":true,"listed":false,"github":"https://github.com/ikskuh/SDL.zig","clone":"git clone https://github.com/ikskuh/SDL.zig.git","description":"A shallow wrapper around SDL that provides object API and error handling","language":"C","stars":446,"topics":["sdl","zig","zig-package","ziglang","sdl2","gamedev"],"license":"MIT","category":"game-templates","readme_excerpt":"SDL.zig A Zig package that provides you with the means to link SDL2 to your project, as well as a Zig-infused header implementation (allows you to not have the SDL2 headers on your system and still compile for SDL2) and a shallow wrapper around the SDL apis that allow a more Zig-style coding with Zig error handling and tagged unions. Getting started Linking SDL2 to your project This is an example build.zig that will link the SDL2 library to your project. Using the native API This package exposes the SDL2 API as defined in the SDL headers. Use this to create a normal SDL2 program: Using the wrapper API This package also exposes the SDL2 API with a more Zig-style API. Use this if you want a more convenient Zig experience. Note: This API is experimental and might change in the future build.zig API Dependencies All of those are dependencies for the target platform, not for your host. Zig will run/build the same on all source platforms. Windows For Windows, you need to fetch the correct dev libraries from the SDL download page. It is recommended to use the MinGW versions if you don't require MSVC compatibility. MacOS Right now, cross-compiling for MacOS isn't possible. On a Mac, install SDL2 via brew . Linux If you are cross-compiling, no dependencies exist. The build Sdk compiles a libSDL2.so stub which is used for linking. If you compile to your target platform, you require SDL2 to be installed via your OS package manager. Support Matrix This project tries to provide you the bes","default_branch":null,"files":null,"tree":[],"storefront":"/r/ikskuh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ikskuh/SDL.zig/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."}