summaryrefslogtreecommitdiffstats
path: root/wrapsdl.cpp
blob: e91ec8c32622bd72b5f995e046aeb3de574649dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "wrapsdl.hpp"
#include "debug.hpp"

extern "C" {
#include <SDL2/SDL.h>
}

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();
}