|
OpenTTD Source 20251117-master-g7398d2e290
|
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 | |
| std::optional< std::string_view > | GetDriverParam (const StringList &parm, std::string_view name) |
| Get a string parameter the list of parameters. | |
| bool | GetDriverParamBool (const StringList &parm, std::string_view name) |
| Get a boolean parameter the list of parameters. | |
| int | GetDriverParamInt (const StringList &parm, std::string_view name, int def) |
| Get an integer parameter the list of parameters. | |
Base for all drivers (video, sound, music, etc).
Definition in file driver.h.
| std::optional< std::string_view > GetDriverParam | ( | const StringList & | parm, |
| std::string_view | name | ||
| ) |
Get a string parameter the list of parameters.
| parm | The parameters. |
| name | The parameter name we're looking for. |
Definition at line 47 of file driver.cpp.
References StringConsumer::GetLeftData().
Referenced by GetDriverParamBool(), GetDriverParamInt(), MusicDriver_DMusic::Start(), MusicDriver_ExtMidi::Start(), MusicDriver_FluidSynth::Start(), and MusicDriver_Win32::Start().
| bool GetDriverParamBool | ( | const StringList & | parm, |
| std::string_view | name | ||
| ) |
Get a boolean parameter the list of parameters.
| parm | The parameters. |
| name | The parameter name we're looking for. |
Definition at line 67 of file driver.cpp.
References GetDriverParam().
Referenced by VideoDriver_SDL_Base::Start(), and VideoDriver_Win32GDI::Start().
| int GetDriverParamInt | ( | const StringList & | parm, |
| std::string_view | 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 79 of file driver.cpp.
References GetDriverParam().
Referenced by MusicDriver_DMusic::Start(), MusicDriver_Win32::Start(), SoundDriver_SDL::Start(), SoundDriver_Win32::Start(), SoundDriver_XAudio2::Start(), VideoDriver_Null::Start(), and VideoDriver_SDL_Base::Start().