Equalizer  1.2.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
 Bind the FBO and update the pipe's current cache.
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 65 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 57 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
virtual void eq::GLWindow::makeCurrent ( ) const [virtual]

Bind the FBO and update the pipe's 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 Fri Jun 8 2012 15:44:35 for Equalizer 1.2.1 by  doxygen 1.8.0