Equalizer  1.4.1
Public Member Functions
eq::GLWindow Class Reference

A system window for OpenGL rendering. More...

#include <glWindow.h>

+ Inheritance diagram for eq::GLWindow:
+ Collaboration diagram for eq::GLWindow:

List of all members.

Public Member Functions

 GLWindow (Window *parent)
 Construct a new OpenGL window.
virtual ~GLWindow ()
 Destruct a new OpenGL window.
virtual void makeCurrent (const bool cache=true) const
 Bind the FBO and update the current cache.
bool isCurrent () const
virtual void initGLEW ()
 Initialize the GLEW context for this window.
virtual void exitGLEW ()
 De-initialize the GLEW context.
virtual const GLEWContext * glewGetContext () const
 Get the GLEW context for this window.
virtual void queryDrawableConfig (DrawableConfig &)
 Set up the drawable config by querying the current context.
Frame Buffer Object support.
virtual void bindFrameBuffer () const
 Bind the window's FBO, if it uses an FBO drawable.
virtual bool configInitFBO ()
 Build and initialize the FBO.
virtual void configExitFBO ()
 Destroy the FBO.
virtual const
util::FrameBufferObject
getFrameBufferObject () const

Detailed Description

A system window for OpenGL rendering.

The GLWindow implements all generic OpenGL functionality for a SystemWindow. It is subclassed by OS-specific implementations which provide the the glue to the actual window system.

Definition at line 33 of file glWindow.h.


Constructor & Destructor Documentation

Construct a new OpenGL window.

Version:
1.0
virtual eq::GLWindow::~GLWindow ( ) [virtual]

Destruct a new OpenGL window.

Version:
1.0

Member Function Documentation

virtual void eq::GLWindow::bindFrameBuffer ( ) const [virtual]

Bind the window's FBO, if it uses an FBO drawable.

Version:
1.0

Implements eq::SystemWindow.

virtual void eq::GLWindow::configExitFBO ( ) [virtual]

Destroy the FBO.

Version:
1.0

Reimplemented from eq::SystemWindow.

virtual bool eq::GLWindow::configInitFBO ( ) [virtual]

Build and initialize the FBO.

Version:
1.0

Reimplemented from eq::SystemWindow.

virtual void eq::GLWindow::exitGLEW ( ) [inline, virtual]

De-initialize the GLEW context.

Version:
1.0

Definition at line 71 of file glWindow.h.

virtual const util::FrameBufferObject* eq::GLWindow::getFrameBufferObject ( ) const [inline, virtual]
Returns:
the FBO of this window, or 0.
Version:
1.0

Reimplemented from eq::SystemWindow.

Definition at line 63 of file glWindow.h.

virtual const GLEWContext* eq::GLWindow::glewGetContext ( ) const [virtual]

Get the GLEW context for this window.

The glew context is initialized during window initialization, and provides access to OpenGL extensions. This function does not follow the Equalizer naming conventions, since GLEW uses a function of this name to automatically resolve OpenGL function entry points. Therefore, any supported GL function can be called directly from an initialized GLWindow.

Returns:
the extended OpenGL function table for the window's OpenGL context.
Version:
1.0

Reimplemented from eq::SystemWindow.

virtual void eq::GLWindow::initGLEW ( ) [virtual]

Initialize the GLEW context for this window.

Version:
1.0
bool eq::GLWindow::isCurrent ( ) const
Returns:
true if this window was last made current in this thread.
Version:
1.3.2
virtual void eq::GLWindow::makeCurrent ( const bool  cache = true) const [virtual]

Bind the FBO and update the current cache.

Version:
1.0

Implements eq::SystemWindow.

Reimplemented in eq::wgl::Window, eq::agl::Window, and eq::glx::Window.

virtual void eq::GLWindow::queryDrawableConfig ( DrawableConfig &  ) [virtual]

Set up the drawable config by querying the current context.

Version:
1.0

Implements eq::SystemWindow.


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 2012 14:41:50 for Equalizer 1.4.1 by  doxygen 1.7.6.1