< Description | Dependencies | Configuration | Compiling | Roadmap >
SDLW (SDL Wrapper) is a simple 'wrapper' for SDL2's window and renderer with an API inspired by GLFW3.
SDLW was inspired by the syntax of GLFW3, I found myself spending more time getting boiler plate SDL window and renderer creation than actual prototyping.
In every project I would start, I would either start copy-pasting a large chunk of code just to get basic events working or just rewriting the same code base with minor tweaks, I may as well build a simple wrapper I can include to expedite this step and here we are!
Note: I have only tested the current build using Fedora 36!
sdl2
gcc
SDL2-devel
meson
SDLW can simply have the source code directly added to your current project, however it is recommended the static library is installed globally and linked!
# This is just a recommendation method
meson builddir --prefix=/usr
sudo meson install -C builddir
# Use these commands to just build the tests
meson builddir -Dbuild_examples=true
sudo meson compile -C builddir
This roadmap outlines my current plans to implement features and will be updated as plans change
-
Version 1.0
- Basic window callback and creation
-
Version 2.0
- Initial renderer function wrapping
- Add more window functions and callbacks
- Update documentation
-
Version 2.1
- Add extra renderer functions (Primitive rendering, etc)
- Add compile time configurations
-
Version 3.0
- Custom texture wrapper
- Texture loading via stb_image