diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:34:56 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:34:56 +0100 |
commit | 2914d264ded33d236f0dbd78f899b0003d3b9d52 (patch) | |
tree | 1553c3ac770d8662233a0bd9d4516bde5b764fb7 /include/wsdl2.hpp | |
parent | Update .gitignore (diff) | |
download | libwsdl2-2914d264ded33d236f0dbd78f899b0003d3b9d52.tar.gz libwsdl2-2914d264ded33d236f0dbd78f899b0003d3b9d52.zip |
Rename library from libwrapsdl2 to libwsdl2
Diffstat (limited to 'include/wsdl2.hpp')
-rw-r--r-- | include/wsdl2.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/wsdl2.hpp b/include/wsdl2.hpp new file mode 100644 index 0000000..16564ac --- /dev/null +++ b/include/wsdl2.hpp @@ -0,0 +1,23 @@ +#pragma once + +extern "C" { +#include <SDL2/SDL.h> +} + +namespace wsdl2 { + bool initialize(void); + void quit(void); + + namespace util { + constexpr inline bool sdl_bool(SDL_bool b) { + return b == SDL_TRUE; + } + + constexpr inline SDL_bool sdl_bool(bool b) { + return (b) ? SDL_TRUE : SDL_FALSE; + } + } + + // tool functions + void delay(unsigned ms); +}
\ No newline at end of file |