From 2914d264ded33d236f0dbd78f899b0003d3b9d52 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 22 Jan 2019 15:34:56 +0100 Subject: Rename library from libwrapsdl2 to libwsdl2 --- include/event.hpp | 2 +- include/video.hpp | 2 +- include/wrapsdl2.hpp | 23 ----------------------- include/wsdl2.hpp | 23 +++++++++++++++++++++++ 4 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 include/wrapsdl2.hpp create mode 100644 include/wsdl2.hpp (limited to 'include') diff --git a/include/event.hpp b/include/event.hpp index b992852..9932cb8 100644 --- a/include/event.hpp +++ b/include/event.hpp @@ -6,7 +6,7 @@ extern "C" { #include } -namespace wrapsdl2 { +namespace wsdl2 { class event { public: using type = SDL_EventType; diff --git a/include/video.hpp b/include/video.hpp index 2749d11..a00f77e 100644 --- a/include/video.hpp +++ b/include/video.hpp @@ -8,7 +8,7 @@ extern "C" { #include } -namespace wrapsdl2 { +namespace wsdl2 { typedef SDL_Point point; typedef SDL_Rect rect; diff --git a/include/wrapsdl2.hpp b/include/wrapsdl2.hpp deleted file mode 100644 index 2f28890..0000000 --- a/include/wrapsdl2.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -extern "C" { -#include -} - -namespace wrapsdl2 { - 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 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 +} + +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 -- cgit v1.2.1