eq::GLWindow Class Reference

The interface definition for OS-specific windowing code. More...

#include <glWindow.h>

Inheritance diagram for eq::GLWindow:
Inheritance graph
[legend]
Collaboration diagram for eq::GLWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GLWindow (Window *parent)
virtual void makeCurrent () const
 Make the OS window's rendering context and drawable current.
virtual void bindFrameBuffer () const
 Bind the window's FBO, if it uses an FBO drawable.
virtual void initGLEW ()
 Initialize the GLEW context for this window.
virtual void exitGLEW ()
 De-initialize the GLEW context.
virtual GLEWContext * glewGetContext ()
 Get the GLEW context for this window.
virtual const GLEWContext * glewGetContext () const
 Const-version of glewGetContext.
virtual void queryDrawableConfig (DrawableConfig &drawableConfig)
 Set up _drawableConfig by querying the current context.
Frame Buffer Object support.



virtual bool configInitFBO ()
 Build and initialize the FBO.
virtual void configExitFBO ()
 Destroy FBO.
virtual const
util::FrameBufferObject
getFrameBufferObject () const

Detailed Description

The interface definition for OS-specific windowing code.

The OSWindow abstracts all window system specific code and facilitates porting to new windowing systems. Each Windows uses one OSWindow, which is initialized in Window::configInitOSWindow.

Definition at line 34 of file glWindow.h.


Member Function Documentation

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

Make the OS window's rendering context and drawable current.

This function invalidates the pipe's make current cache. If this function is not called, Pipe::setCurrent() has to be called appropriately.

Implements eq::OSWindow.

Reimplemented in eq::AGLWindow, eq::GLXWindow, and eq::WGLWindow.

Definition at line 44 of file glWindow.cpp.

References eq::OSWindow::_window, bindFrameBuffer(), and eq::Pipe::setCurrent().

Here is the call graph for this function:

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

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

Implements eq::OSWindow.

Definition at line 121 of file glWindow.cpp.

References eq::util::FrameBufferObject::bind().

Referenced by makeCurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Destroy FBO.

Reimplemented from eq::OSWindow.

Definition at line 112 of file glWindow.cpp.

References eq::util::FrameBufferObject::exit().

Referenced by eq::WGLWindow::configExit(), eq::GLXWindow::configExit(), and eq::AGLWindow::configExit().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from eq::OSWindow.

Definition at line 54 of file glWindow.h.

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

Initialize the GLEW context for this window.

Definition at line 50 of file glWindow.cpp.

References eq::OSWindow::_window, and eq::Window::setErrorMessage().

Referenced by eq::WGLWindow::configInit(), eq::GLXWindow::configInit(), and eq::AGLWindow::configInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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

De-initialize the GLEW context.

Definition at line 62 of file glWindow.h.

Referenced by eq::WGLWindow::configExit(), eq::GLXWindow::configExit(), and eq::AGLWindow::configExit().

Here is the caller graph for this function:

GLEWContext * eq::GLWindow::glewGetContext (  )  [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 OSWindow.

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

Reimplemented from eq::OSWindow.

Definition at line 62 of file glWindow.cpp.

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

Const-version of glewGetContext.

Reimplemented from eq::OSWindow.

Definition at line 67 of file glWindow.cpp.

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

The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:04:46 2010 for Equalizer 0.9.1 by  doxygen 1.6.1