Equalizer  1.6.1
Public Member Functions | List of all members
eq::GLWindow Class Reference

A system window for OpenGL rendering. More...

#include <glWindow.h>

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

Public Member Functions

 GLWindow (Window *parent)
 Construct a new OpenGL window. More...
 
virtual ~GLWindow ()
 Destruct a new OpenGL window. More...
 
virtual void makeCurrent (const bool cache=true) const
 Bind the FBO and update the current cache. More...
 
bool isCurrent () const
 
virtual void initGLEW ()
 Initialize the GLEW context for this window. More...
 
virtual void exitGLEW ()
 De-initialize the GLEW context. More...
 
virtual const GLEWContext * glewGetContext () const
 Get the GLEW context for this window. More...
 
virtual void queryDrawableConfig (DrawableConfig &)
 Set up the drawable config by querying the current context. More...
 
Frame Buffer Object support.
virtual void bindFrameBuffer () const
 Bind the window's FBO, if it uses an FBO drawable. More...
 
virtual void flush ()
 Flush all command buffers. More...
 
virtual void finish ()
 Finish execution of all commands. More...
 
virtual bool configInitFBO ()
 Build and initialize the FBO. More...
 
virtual void configExitFBO ()
 Destroy the FBO. More...
 
virtual const
util::FrameBufferObject
getFrameBufferObject () const
 
- Public Member Functions inherited from eq::SystemWindow
 SystemWindow (Window *parent)
 Create a new SystemWindow for the given eq::Window. More...
 
virtual ~SystemWindow ()
 Destroy the SystemWindow. More...
 
void setError (const int32_t error)
 Set an error code why the last operation failed. More...
 
eq::fabric::Error getError () const
 
virtual bool processEvent (const Event &event)
 Process an event. More...
 
virtual bool configInit ()=0
 Initialize this system window. More...
 
virtual void configExit ()=0
 De-initialize this system window. More...
 
virtual void swapBuffers ()=0
 Swap the front and back buffer. More...
 
virtual void joinNVSwapBarrier (const uint32_t group, const uint32_t barrier)=0
 Join a NV_swap_group. More...
 
bool configInitFBO ()
 Build and initialize the FBO. More...
 
void configExitFBO ()
 Destroy FBO. More...
 
WindowgetWindow ()
 
const WindowgetWindow () const
 
PipegetPipe ()
 
const PipegetPipe () const
 
NodegetNode ()
 
const NodegetNode () const
 
ConfiggetConfig ()
 
const ConfiggetConfig () const
 
int32_t getIAttribute (const Window::IAttribute attr) 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

eq::GLWindow::GLWindow ( Window parent)

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
virtual bool eq::GLWindow::configInitFBO ( )
virtual

Build and initialize the FBO.

Version
1.0
virtual void eq::GLWindow::exitGLEW ( )
inlinevirtual

De-initialize the GLEW context.

Version
1.0

Definition at line 77 of file glWindow.h.

virtual void eq::GLWindow::finish ( )
virtual

Finish execution of all commands.

Version
1.5.2

Implements eq::SystemWindow.

virtual void eq::GLWindow::flush ( )
virtual

Flush all command buffers.

Version
1.5.2

Implements eq::SystemWindow.

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

Reimplemented from eq::SystemWindow.

Definition at line 69 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: