This class provides the interface for graphics different drivers. More...
#include <MultiWidgets/GfxDriver.hpp>
Public Member Functions | |
| virtual bool | autoConfigure ()=0 |
| Auto-configure the graphics subsystem This is called if no valid configuration file is found. | |
| virtual size_t | frame () const =0 |
| The number of frame the driver is rendering. More... | |
| virtual bool | init (Application &app)=0 |
| Initialize the graphics subsystem. | |
| virtual void | keepMouseCursorVisible (bool keepVisible)=0 |
| Tells the driver to keep the mouse cursor visible, even after timeout. | |
| virtual Luminous::MultiHead & | multiHead ()=0 |
| Returns the active multihead configuration. | |
| virtual bool | needGUI () const =0 |
| Check if the driver requires a GUI widgets. More... | |
| virtual void | render ()=0 |
| Render a single frame. | |
| virtual void | shutdown ()=0 |
| Shutdown the graphics subsystem. | |
This class provides the interface for graphics different drivers.
The graphics drivers are responsible for the high-level rendering in Cornerstone. Typically they create windows, setup resources for drawing, etc.
|
pure virtual |
The number of frame the driver is rendering.
Implemented in MultiWidgets::NullGfxDriver, and MultiWidgets::ThreadedGfxDriver.
|
pure virtual |
Check if the driver requires a GUI widgets.
Usually this is true, but if a console-only application is wanted, the driver must return false.
Implemented in MultiWidgets::NullGfxDriver, and MultiWidgets::ThreadedGfxDriver.