OpenTTD Source
20241108-master-g80f628063a
|
Base for all drivers (video, sound, music, etc). More...
Go to the source code of this file.
Data Structures | |
class | Driver |
A driver for communicating with the user. More... | |
class | DriverFactoryBase |
Base for all driver factories. More... | |
Functions | |
const char * | GetDriverParam (const StringList &parm, const char *name) |
Get a string parameter the list of parameters. More... | |
bool | GetDriverParamBool (const StringList &parm, const char *name) |
Get a boolean parameter the list of parameters. More... | |
int | GetDriverParamInt (const StringList &parm, const char *name, int def) |
Get an integer parameter the list of parameters. More... | |
Base for all drivers (video, sound, music, etc).
Definition in file driver.h.
const char* GetDriverParam | ( | const StringList & | parm, |
const char * | name | ||
) |
Get a string parameter the list of parameters.
parm | The parameters. |
name | The parameter name we're looking for. |
Definition at line 44 of file driver.cpp.
Referenced by GetDriverParamBool(), GetDriverParamInt(), MusicDriver_ExtMidi::Start(), and MusicDriver_FluidSynth::Start().
bool GetDriverParamBool | ( | const StringList & | parm, |
const char * | name | ||
) |
Get a boolean parameter the list of parameters.
parm | The parameters. |
name | The parameter name we're looking for. |
Definition at line 64 of file driver.cpp.
References GetDriverParam().
Referenced by VideoDriver_SDL_Base::Start().
int GetDriverParamInt | ( | const StringList & | parm, |
const char * | name, | ||
int | def | ||
) |
Get an integer parameter the list of parameters.
parm | The parameters. |
name | The parameter name we're looking for. |
def | The default value if the parameter doesn't exist. |
Definition at line 76 of file driver.cpp.
References GetDriverParam().
Referenced by MusicDriver_Win32::Start(), SoundDriver_SDL::Start(), SoundDriver_Win32::Start(), and VideoDriver_Null::Start().