All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::ThreadedGfxDriver Class Reference

This class implements the default multi-threaded render driver in Cornerstone. More...

#include <MultiWidgets/ThreadedGfxDriver.hpp>

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

Public Member Functions

virtual bool autoConfigure ()
 Configures screens automatically. More...
 
virtual size_t frame () const
 The frame number the driver is rendering. More...
 
virtual bool init (MultiWidgets::Application &app)
 Initializes the driver. More...
 
virtual void keepMouseCursorVisible (bool keepVisible)
 Tells the driver to keep the mouse cursor visible, even after timeout.
 
virtual Luminous::MultiHeadmultiHead ()
 Get the display configuration for the driver. More...
 
virtual bool needGUI () const
 Does this driver require initialization of Luminous. More...
 
virtual void render ()
 Issues a render command to all threads and goes to sleep.
 
virtual void shutdown ()
 Shuts down the driver. Stops all rendering threads.
 
 ThreadedGfxDriver ()
 Cnstructor for the driver.
 
virtual ~ThreadedGfxDriver ()
 Destructor for the driver.
 

Friends

class RenderThread
 

Detailed Description

This class implements the default multi-threaded render driver in Cornerstone.

Member Function Documentation

virtual bool MultiWidgets::ThreadedGfxDriver::autoConfigure ( )
virtual

Configures screens automatically.

Returns
Was the configuration successful?

Implements MultiWidgets::GfxDriver.

virtual size_t MultiWidgets::ThreadedGfxDriver::frame ( ) const
virtual

The frame number the driver is rendering.

Returns
Number of the current frame

Implements MultiWidgets::GfxDriver.

virtual bool MultiWidgets::ThreadedGfxDriver::init ( MultiWidgets::Application app)
virtual

Initializes the driver.

Parameters
appRelated application
Returns
true if the initialization was successful; otherwise false

Implements MultiWidgets::GfxDriver.

virtual Luminous::MultiHead& MultiWidgets::ThreadedGfxDriver::multiHead ( )
virtual

Get the display configuration for the driver.

Returns
display configuration

Implements MultiWidgets::GfxDriver.

virtual bool MultiWidgets::ThreadedGfxDriver::needGUI ( ) const
virtual

Does this driver require initialization of Luminous.

Returns
Always true

Implements MultiWidgets::GfxDriver.