OpenTTD Source
20241108-master-g80f628063a
|
A driver for communicating with the user. More...
#include <driver.h>
Public Types | |
enum | Type { DT_BEGIN = 0 , DT_MUSIC = 0 , DT_SOUND , DT_VIDEO , DT_END } |
The type of driver. More... | |
Public Member Functions | |
virtual std::optional< std::string_view > | Start (const StringList &parm)=0 |
Start this driver. More... | |
virtual void | Stop ()=0 |
Stop this driver. | |
virtual std::string_view | GetName () const =0 |
Get the name of this driver. More... | |
enum Driver::Type |
|
pure virtual |
Get the name of this driver.
Implemented in VideoDriver_Win32GDI, VideoDriver_SDL, VideoDriver_SDL_OpenGL, VideoDriver_SDL_Default, VideoDriver_Null, VideoDriver_Dedicated, VideoDriver_CocoaQuartz, VideoDriver_CocoaOpenGL, VideoDriver_Allegro, SoundDriver_XAudio2, SoundDriver_Win32, SoundDriver_SDL, SoundDriver_Null, SoundDriver_Cocoa, SoundDriver_Allegro, MusicDriver_Win32, MusicDriver_Null, MusicDriver_FluidSynth, MusicDriver_ExtMidi, MusicDriver_DMusic, MusicDriver_Cocoa, MusicDriver_BeMidi, and MusicDriver_Allegro.
Referenced by SurveyConfiguration().
|
pure virtual |
Start this driver.
parm | Parameters passed to the driver. |
Implemented in VideoDriver_Win32GDI, VideoDriver_SDL, VideoDriver_SDL_Base, VideoDriver_SDL_OpenGL, VideoDriver_Null, VideoDriver_Dedicated, VideoDriver_CocoaQuartz, VideoDriver_CocoaOpenGL, VideoDriver_Allegro, SoundDriver_XAudio2, SoundDriver_Win32, SoundDriver_SDL, SoundDriver_Cocoa, SoundDriver_Allegro, MusicDriver_Win32, MusicDriver_FluidSynth, MusicDriver_ExtMidi, MusicDriver_DMusic, MusicDriver_Cocoa, MusicDriver_BeMidi, MusicDriver_Allegro, SoundDriver_Null, and MusicDriver_Null.
Referenced by DriverFactoryBase::SelectDriverImpl().