The interface definition for OS-specific windowing code. More...
#include <glWindow.h>


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 |
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.
| 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().

| 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().


| bool eq::GLWindow::configInitFBO | ( | ) | [virtual] |
Build and initialize the FBO.
Reimplemented from eq::OSWindow.
Definition at line 72 of file glWindow.cpp.
References eq::OSWindow::_window, eq::AUTO, eq::Window::getColorFormat(), eq::util::FrameBufferObject::getErrorMessage(), eq::Window::getPixelViewport(), eq::Window::IATTR_PLANES_DEPTH, eq::Window::IATTR_PLANES_STENCIL, eq::util::FrameBufferObject::init(), eq::util::FrameBufferObject::setColorFormat(), and eq::Window::setErrorMessage().
Referenced by eq::WGLWindow::configInit(), eq::GLXWindow::configInit(), and eq::AGLWindow::configInitAGLDrawable().


| 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().


| virtual const util::FrameBufferObject* eq::GLWindow::getFrameBufferObject | ( | ) | const [inline, virtual] |
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().


| 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().

| 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.
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] |
Set up _drawableConfig by querying the current context.
Implements eq::OSWindow.
Definition at line 132 of file glWindow.cpp.
References eq::DrawableConfig::accumBits, eq::DrawableConfig::alphaBits, eq::DrawableConfig::doublebuffered, EQINFO, EQWARN, eq::DrawableConfig::glVersion, eq::DrawableConfig::stencilBits, and eq::DrawableConfig::stereo.
0.9.1 by
1.6.1