gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmGraphics::QuadBufferMultiplexer Class Reference

Stereo rendering multiplexer that directs left and right eye rendering to the left and right back buffers, respectively. More...

#include <QuadBufferMultiplexer.hh>

Inheritance diagram for gramods::gmGraphics::QuadBufferMultiplexer:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::QuadBufferMultiplexer:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

size_t getEyeCount ()
 Returns the number of eyes that should be rendered for the multiplexer. More...
 
void prepare () override
 Prepares the multiplexer for rendering to the two eyes. More...
 
void setupRendering (size_t eye) override
 Sets up rendering for one eye at a time. More...
 
void finalize () override
 Finalizes the multiplexing. More...
 
- Public Member Functions inherited from gramods::gmGraphics::MultiscopicMultiplexer
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Detailed Description

Stereo rendering multiplexer that directs left and right eye rendering to the left and right back buffers, respectively.

This requires support for quad buffer rendering on graphics hardware, driver and current graphics context.

Member Function Documentation

◆ finalize()

void gramods::gmGraphics::QuadBufferMultiplexer::finalize ( )
overridevirtual

Finalizes the multiplexing.

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ getEyeCount()

size_t gramods::gmGraphics::QuadBufferMultiplexer::getEyeCount ( )
inlinevirtual

Returns the number of eyes that should be rendered for the multiplexer.

Returns the value two (2).

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ prepare()

void gramods::gmGraphics::QuadBufferMultiplexer::prepare ( )
overridevirtual

Prepares the multiplexer for rendering to the two eyes.

Implements gramods::gmGraphics::MultiscopicMultiplexer.

◆ setupRendering()

void gramods::gmGraphics::QuadBufferMultiplexer::setupRendering ( size_t  eye)
overridevirtual

Sets up rendering for one eye at a time.

Implements gramods::gmGraphics::MultiscopicMultiplexer.


The documentation for this class was generated from the following files: