Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Static Public Member Functions | Static Private Member Functions | List of all members
SDLWrapper Class Reference

Wraps the SDL libraries. More...

#include <SDLWrapper.h>

Static Public Member Functions

static bool initialize ()
 The system initializer. More...
 
static void close ()
 Closes all open systems. More...
 

Static Private Member Functions

static void logSDLVersion (const std::string &what_, const SDL_version &compiled_, std::string revision_=std::string(""))
 Logs the SDL API version. More...
 

Detailed Description

Wraps the SDL libraries.

And contains the initializing and closing functions for the system(s). No instances necessary.

Member Function Documentation

void SDLWrapper::close ( )
static

Closes all open systems.

Closes all systems and/or subsystems opened by the initializer method.

See Also
initialize()
bool SDLWrapper::initialize ( )
static

The system initializer.

Initializes all the SDL systems and/or subsystems.

Returns
True if every system was initialized successfully, else it returns false.
Todo:
Initialize SDL_TTF. And not do INIT_EVERYTHING.
void SDLWrapper::logSDLVersion ( const std::string &  what_,
const SDL_version &  compiled_,
std::string  revision_ = std::string("") 
)
staticprivate

Logs the SDL API version.

Parameters
what_: What API is being logged about.
compiled_: The compiled version.
linked_: The linked version.
revision_: If any, the revision.

The documentation for this class was generated from the following files: