| OpenTTD
    | 
The base of all video drivers. More...
#include <video_driver.hpp>
 
  
 | Public Member Functions | |
| virtual void | MakeDirty (int left, int top, int width, int height)=0 | 
| Mark a particular area dirty. | |
| virtual void | MainLoop ()=0 | 
| Perform the actual drawing. | |
| virtual bool | ChangeResolution (int w, int h)=0 | 
| Change the resolution of the window. | |
| virtual bool | ToggleFullscreen (bool fullscreen)=0 | 
| Change the full screen setting. | |
| virtual bool | AfterBlitterChange () | 
| Callback invoked after the blitter was changed. | |
| virtual bool | ClaimMousePointer () | 
| virtual bool | HasGUI () const | 
| Whether the driver has a graphical user interface with the end user. | |
| virtual void | EditBoxLostFocus () | 
| An edit box lost the input focus. | |
|  Public Member Functions inherited from Driver | |
| virtual const char * | Start (const char *const *parm)=0 | 
| Start this driver. | |
| virtual void | Stop ()=0 | 
| Stop this driver. | |
| virtual const char * | GetName () const =0 | 
| Get the name of this driver. | |
| Static Public Member Functions | |
| static VideoDriver * | GetInstance () | 
| Get the currently active instance of the video driver. | |
| Additional Inherited Members | |
|  Public Types inherited from Driver | |
| enum | Type { DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO, DT_END } | 
| The type of driver.  More... | |
The base of all video drivers.
Definition at line 19 of file video_driver.hpp.
| 
 | inlinevirtual | 
Callback invoked after the blitter was changed.
Reimplemented in VideoDriver_Cocoa, VideoDriver_Allegro, VideoDriver_SDL, and VideoDriver_Win32.
Definition at line 54 of file video_driver.hpp.
| 
 | pure virtual | 
Change the resolution of the window.
| w | The new width. | 
| h | The new height. | 
Implemented in VideoDriver_Cocoa, VideoDriver_Null, VideoDriver_Allegro, VideoDriver_Dedicated, VideoDriver_SDL, and VideoDriver_Win32.
| 
 | inlinevirtual | 
An edit box lost the input focus.
Abort character compositing if necessary.
Reimplemented in VideoDriver_Cocoa, and VideoDriver_Win32.
Definition at line 80 of file video_driver.hpp.
Referenced by OskWindow::OnFocusLost(), IConsoleWindow::OnFocusLost(), Window::OnFocusLost(), Window::SetFocusedWidget(), and Window::UnfocusFocusedWidget().
| 
 | inlinevirtual | 
Whether the driver has a graphical user interface with the end user.
Or in other words, whether we should spawn a thread for world generation and NewGRF scanning so the graphical updates can keep coming. Otherwise progress has to be shown on the console, which uses by definition another thread/process for display purposes.
Reimplemented in VideoDriver_Null, and VideoDriver_Dedicated.
Definition at line 72 of file video_driver.hpp.
| 
 | pure virtual | 
Mark a particular area dirty.
| left | The left most line of the dirty area. | 
| top | The top most line of the dirty area. | 
| width | The width of the dirty area. | 
| height | The height of the dirty area. | 
Implemented in VideoDriver_Cocoa, VideoDriver_Null, VideoDriver_Allegro, VideoDriver_Dedicated, VideoDriver_SDL, and VideoDriver_Win32.
Referenced by NetworkDrawChatMessage(), NetworkUndrawChatMessage(), and Blitter_32bppAnim::PaletteAnimate().
| 
 | pure virtual | 
Change the full screen setting.
| fullscreen | The new setting. | 
Implemented in VideoDriver_Cocoa, VideoDriver_Null, VideoDriver_Allegro, VideoDriver_Dedicated, VideoDriver_SDL, and VideoDriver_Win32.
 1.8.1.2
 1.8.1.2