cpp-sdl2
cpp-sdl2 copied to clipboard
Header only C++17 bindings to SDL2 (https://wiki.libsdl.org/FrontPage)
Haven't been active on this project for a while, so here are a few things to keep me occupied for a bit, in no particular order: - [ ] Fix...
This adds support for SDL2_TTF in a manner similar to SDL2_Image, and also adds some methods I found myself needing.
How to reproduce: ```cpp #include ``` Always reproductible, will fail to compile due to `SDL_VERSION_ATLEAST` not being defined. Also observable when including `cpp-sdl2/renderer.hpp`. The temporary workaround I'm using is to...
In particular, make sure we build with permissive- on msvc. we've been compiling fine on msvc only because of their late template parsing. we shouldn't have had that compiling for...
Might be a CI specific problem or not, gotta test. #38 is dependent on this one getting fixed
See https://github.com/Edhebi/cpp-sdl2/runs/791731892?check_suite_focus=true
We wrap unique_ptr and shared_ptr for SDL simd allocation. Might as well provide an allocator and a memory_resource.
SDL has `IntN` and `UintN`, but we can assume that users will have access to ``, even on a freestanding implementation. We should consider sdl types to be an implementation...
Most of our type are move only, and swap is a nice primitive to work with those. It's pretty quick to implement and would make things easier, at the very...
`sdl::Timer` doesn't seem to be using raii like the rest of the code. I don't realy care about the factory function, but requiring a `remove()` is a bit weird imo.