From 84c305819930713603124d984acb51df87761246 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 2 Nov 2023 20:11:53 -0400 Subject: emscripten port --- sdl.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sdl.h') diff --git a/sdl.h b/sdl.h index 46d1fa4..4335ed2 100644 --- a/sdl.h +++ b/sdl.h @@ -2,7 +2,6 @@ #define SDL_H_A2226476 #include -#include #include #include @@ -17,11 +16,6 @@ class ttf_error : public std::logic_error { ttf_error() : std::logic_error(TTF_GetError()) {} }; -class net_error : public std::logic_error { - public: - net_error() : std::logic_error(SDLNet_GetError()) {} -}; - class sdl_wrapper { public: sdl_wrapper() { @@ -50,20 +44,6 @@ class ttf_wrapper { ~ttf_wrapper() { TTF_Quit(); } }; -class net_wrapper { - public: - net_wrapper() { - if (SDLNet_Init() == -1) { - net_error ex; - SDLNet_Quit(); - - throw ex; - } - } - - ~net_wrapper() { SDLNet_Quit(); } -}; - class window_deleter { public: void operator()(SDL_Window* ptr) { SDL_DestroyWindow(ptr); } -- cgit 1.4.1