Equalizer  1.6.1
Public Member Functions | Protected Member Functions | List of all members
seqPly::Renderer Class Reference
+ Inheritance diagram for seqPly::Renderer:
+ Collaboration diagram for seqPly::Renderer:

Public Member Functions

 Renderer (seq::Application &app)
 
virtual ~Renderer ()
 Destruct this renderer. More...
 
StategetState ()
 
- Public Member Functions inherited from seq::Renderer
 Renderer (Application &application)
 Construct a new renderer. More...
 
virtual bool initContext (co::Object *initData)
 Initialize an OpenGL context. More...
 
virtual bool exitContext ()
 De-initialize an OpenGL context. More...
 
virtual void clear (co::Object *frameData)
 Clear the frame buffer. More...
 
virtual void applyRenderContext ()
 Apply the current rendering parameters to OpenGL. More...
 
const RenderContextgetRenderContext () const
 
virtual void applyModelMatrix ()
 Apply the current model matrix to OpenGL. More...
 
detail::Renderer * getImpl ()
 
co::Object * getFrameData ()
 
ApplicationgetApplication ()
 
const ApplicationgetApplication () const
 
virtual ViewDatacreateViewData ()
 Create a new per-view data instance. More...
 
virtual void destroyViewData (ViewData *viewData)
 Delete the given view data. More...
 
const GLEWContext * glewGetContext () const
 Get the GLEW context for this renderer. More...
 
const Frustumf & getFrustum () const
 
const Matrix4f & getViewMatrix () const
 
const Matrix4f & getModelMatrix () const
 
virtual co::Object * createObject (const uint32_t type)
 
virtual void destroyObject (co::Object *object, const uint32_t type)
 

Protected Member Functions

virtual bool init (co::Object *initData)
 Initialize the renderer. More...
 
virtual bool exit ()
 De-initialize the renderer. More...
 
virtual void draw (co::Object *frameData)
 Render the scene. More...
 

Detailed Description

Definition at line 37 of file share/Equalizer/examples/seqPly/renderer.h.

Constructor & Destructor Documentation

virtual seqPly::Renderer::~Renderer ( )
inlinevirtual

Destruct this renderer.

Version
1.0

Reimplemented from seq::Renderer.

Definition at line 41 of file share/Equalizer/examples/seqPly/renderer.h.

Member Function Documentation

void seqPly::Renderer::draw ( co::Object *  frameData)
protectedvirtual

Render the scene.

Parameters
frameDatathe renderer's instance of the object passed to Config::run.
Version
1.0

Implements seq::Renderer.

Definition at line 60 of file renderer.cpp.

References seq::Renderer::applyModelMatrix(), seq::Renderer::applyRenderContext(), seq::Renderer::getApplication(), seq::Renderer::getFrustum(), seq::Renderer::getModelMatrix(), seq::Renderer::getRenderContext(), seq::Renderer::getViewMatrix(), eq::fabric::RenderContext::range, and eq::fabric::Range::start.

+ Here is the call graph for this function:

bool seqPly::Renderer::exit ( )
protectedvirtual

De-initialize the renderer.

Called just before the last context will be destroyed after the last call to exitContext().

Returns
true on success, false otherwise.
Version
1.0

Reimplemented from seq::Renderer.

Definition at line 52 of file renderer.cpp.

References seq::Renderer::exit().

+ Here is the call graph for this function:

bool seqPly::Renderer::init ( co::Object *  initData)
protectedvirtual

Initialize the renderer.

Called once per renderer with an OpenGL context current before the first call to initContext().

Parameters
initDataa per-renderer instance of the object passed to Config::init().
Returns
true on success, false otherwise.
Version
1.0

Reimplemented from seq::Renderer.

Definition at line 46 of file renderer.cpp.

References seq::Renderer::glewGetContext(), and seq::Renderer::init().

+ Here is the call graph for this function:


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