Equalizer
1.6.1
|
A system window for OpenGL rendering. More...
#include <glWindow.h>
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... | |
Window * | getWindow () |
const Window * | getWindow () const |
Pipe * | getPipe () |
const Pipe * | getPipe () const |
Node * | getNode () |
const Node * | getNode () const |
Config * | getConfig () |
const Config * | getConfig () const |
int32_t | getIAttribute (const Window::IAttribute attr) const |
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.
eq::GLWindow::GLWindow | ( | Window * | parent | ) |
Construct a new OpenGL window.
|
virtual |
Destruct a new OpenGL window.
|
virtual |
|
virtual |
Destroy the FBO.
|
virtual |
Build and initialize the FBO.
|
inlinevirtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented from eq::SystemWindow.
Definition at line 69 of file glWindow.h.
|
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.
Reimplemented from eq::SystemWindow.
|
virtual |
Initialize the GLEW context for this window.
bool eq::GLWindow::isCurrent | ( | ) | const |
|
virtual |
Bind the FBO and update the current cache.
Implements eq::SystemWindow.
Reimplemented in eq::wgl::Window, eq::agl::Window, and eq::glx::Window.
|
virtual |