summaryrefslogtreecommitdiffstats
path: root/include/wsdl2.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/wsdl2.hpp')
-rw-r--r--include/wsdl2.hpp23
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