string SDLError(const char *msg) { string s = string(msg) + ": " + SDL_GetError(); Output(OUTPUT_WARN, s.c_str()); SDLShutdown(); return s; }
string SDLError(const char *msg) { string s = string(msg) + ": " + SDL_GetError(); DebugLog(1, s.c_str()); SDLShutdown(); return s; }
void GraphicsShutDown() // should be safe to call even if it wasn't initialized partially or at all { extern void MeshGenClear(); MeshGenClear(); extern void FontCleanup(); FontCleanup(); if (meshes) delete meshes; meshes = NULL; texturecache.clear(); ShaderShutDown(); currentshader = NULL; colorshader = NULL; SDLSoundClose(); SDLShutdown(); // we don't set this to false on most platforms, as currently SDL doesn't like being reinitialized #ifdef ANDROID // FIXME: really only allow this if the app has been killed graphics_initialized = false; #endif }