gramods
|
The SdlContext class initializes SDL with the specified parameters. More...
#include <SdlContext.hh>
Public Member Functions | |
void | setUseVideo (bool on) |
Enable or disable initialization of SDL video engine. More... | |
void | setUseAudio (bool on) |
Enable or disable initialization of SDL audio engine. More... | |
void | initialize () override |
Called to initialize the Object. More... | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. More... | |
![]() | |
Object () | |
Initializes internal data. More... | |
virtual | ~Object () |
Cleaning up internal data. More... | |
virtual void | accept (Visitor *visitor) |
Calls the visitors apply method with this as argument. More... | |
virtual void | traverse (Visitor *visitor) |
Calls the child Object's accept method, if such exist. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Member Functions | |
static bool | hasVideo () |
Returns true if context has been initialized with video support. More... | |
static bool | hasAudio () |
Returns true if context has been initialized with audio support. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
The SdlContext class initializes SDL with the specified parameters.
SDL will be closed when the object is destroyed.
|
inlineoverridevirtual |
Returns the default key, in Configuration, for the Object.
Reimplemented from gramods::gmCore::Object.
|
static |
Returns true if context has been initialized with audio support.
|
static |
Returns true if context has been initialized with video support.
|
overridevirtual |
Called to initialize the Object.
This should be called once only!
Sub classes should override this method to make use of set parameter data. They should also always call its base class' implementation as well.
Reimplemented from gramods::gmCore::Object.
|
inline |
|
inline |