All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::GfxDriver Class Referenceabstract

This class provides the interface for graphics different drivers. More...

#include <MultiWidgets/GfxDriver.hpp>

Inheritance diagram for MultiWidgets::GfxDriver:
MultiWidgets::NullGfxDriver MultiWidgets::ThreadedGfxDriver

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::MultiHeadmultiHead ()=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.
 

Detailed Description

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.

Member Function Documentation

virtual size_t MultiWidgets::GfxDriver::frame ( ) const
pure virtual

The number of frame the driver is rendering.

Returns
Number of the current frame

Implemented in MultiWidgets::NullGfxDriver, and MultiWidgets::ThreadedGfxDriver.

virtual bool MultiWidgets::GfxDriver::needGUI ( ) const
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.

Returns
true if the driver requires GUI widgets, false for console application

Implemented in MultiWidgets::NullGfxDriver, and MultiWidgets::ThreadedGfxDriver.