From f40251efc21a4e2db446af73c810d1b063cf84fb Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 04:00:58 +0100 Subject: Initial commit, add makefile, .gitignore and debug header --- wrapsdl.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 wrapsdl.cpp (limited to 'wrapsdl.cpp') diff --git a/wrapsdl.cpp b/wrapsdl.cpp new file mode 100644 index 0000000..e91ec8c --- /dev/null +++ b/wrapsdl.cpp @@ -0,0 +1,19 @@ +#include "wrapsdl.hpp" +#include "debug.hpp" + +extern "C" { +#include +} + +bool wrapsdl::initialize(void) { + if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) { + npdebug("failed to initialize sdl video subsystem"); + return false; + } + + return true; +} + +void wrapsdl::quit(void) { + SDL_Quit(); +} -- cgit v1.2.1