Equalizer
1.6.1
|
Equalizer default implementation of an AGL window interface. More...
#include <window.h>
Public Member Functions | |
Window (eq::Window *parent, CGDirectDisplayID displayID=0) | |
Create a new AGL window for the given eq::Window. More... | |
virtual | ~Window () |
Destruct the AGL window. More... | |
Data Access | |
virtual void | setAGLContext (AGLContext context) |
Set the AGL rendering context for this window. More... | |
virtual void | setCarbonWindow (WindowRef window) |
Set the carbon window to be used with the current AGL context. More... | |
virtual void | setAGLPBuffer (AGLPbuffer pbuffer) |
Set the AGL PBuffer object to be used with the current AGL context. More... | |
virtual AGLContext | getAGLContext () const |
virtual WindowRef | getCarbonWindow () const |
virtual AGLPbuffer | getAGLPBuffer () const |
CGDirectDisplayID | getCGDisplayID () const |
AGL/Carbon initialization | |
virtual bool | configInit () |
Initialize this window for the AGL window system. More... | |
virtual void | configExit () |
virtual AGLPixelFormat | chooseAGLPixelFormat () |
Choose a pixel format based on the window's attributes. More... | |
virtual void | destroyAGLPixelFormat (AGLPixelFormat format) |
Destroy a pixel format obtained with chooseAGLPixelFormat(). More... | |
virtual AGLContext | createAGLContext (AGLPixelFormat format) |
Create an AGL context. More... | |
virtual bool | configInitAGLDrawable () |
Initialize the window's drawable (fullscreen, pbuffer or window) and bind the AGL context. More... | |
virtual bool | configInitAGLFullscreen () |
Initialize the window with a fullscreen Carbon window. More... | |
virtual bool | configInitAGLWindow () |
Initialize the window with a normal Carbon window. More... | |
virtual bool | configInitAGLPBuffer () |
Initialize the window with an offscreen AGL PBuffer. More... | |
virtual void | initEventHandler () |
Set up an AGLEventHandler, called by setCarbonWindow(). More... | |
virtual void | exitEventHandler () |
Destroy the AGLEventHandler, called by setCarbonWindow(). More... | |
Operations. | |
virtual void | makeCurrent (const bool cache=true) const |
virtual void | swapBuffers () |
virtual void | joinNVSwapBarrier (const uint32_t group, const uint32_t barrier) |
Not implemented for AGL. More... | |
virtual bool | processEvent (const WindowEvent &event) |
Public Member Functions inherited from eq::agl::WindowIF | |
WindowIF (eq::Window *parent) | |
Construct a new AGL window for the given eq::Window. More... | |
virtual | ~WindowIF () |
Destruct the AGL window. More... | |
Public Member Functions inherited from eq::GLWindow | |
GLWindow (Window *parent) | |
Construct a new OpenGL window. More... | |
virtual | ~GLWindow () |
Destruct a new OpenGL window. 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... | |
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... | |
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 |
Equalizer default implementation of an AGL window interface.
Definition at line 60 of file include/eq/client/agl/window.h.
eq::agl::Window::Window | ( | eq::Window * | parent, |
CGDirectDisplayID | displayID = 0 |
||
) |
Create a new AGL window for the given eq::Window.
If kCGNullDirectDisplay is specified as the displayID (the default), the constructor will try to query the corresponding data from the pipe's system pipe (agl::Pipe).
|
virtual |
Destruct the AGL window.
|
virtual |
Choose a pixel format based on the window's attributes.
The returned pixel format has to be destroyed using destroyAGLPixelFormat() to avoid memory leaks.
This method uses Global::enterCarbon() and Global::leaveCarbon() to protect the calls to AGL/Carbon.
|
virtual |
Implements eq::SystemWindow.
|
virtual |
Initialize this window for the AGL window system.
This method first call chooseAGLPixelFormat(), then createAGLContext() with the chosen pixel format, destroys the pixel format using destroyAGLPixelFormat() and finally creates a drawable using configInitAGLDrawable().
Implements eq::SystemWindow.
|
virtual |
Initialize the window's drawable (fullscreen, pbuffer or window) and bind the AGL context.
Sets the window's carbon window on success. Calls configInitAGLFullscreen() or configInitAGLWindow().
|
virtual |
Initialize the window with a fullscreen Carbon window.
Sets the window's carbon window on success.
This method uses Global::enterCarbon() and Global::leaveCarbon() to protect the calls to AGL/Carbon.
|
virtual |
Initialize the window with an offscreen AGL PBuffer.
Sets the window's AGL PBuffer on success.
|
virtual |
Initialize the window with a normal Carbon window.
Sets the window's carbon window on success.
This method uses Global::enterCarbon() and Global::leaveCarbon() to protect the calls to AGL/Carbon.
|
virtual |
Create an AGL context.
This method does not set the window's AGL context.
This method uses Global::enterCarbon() and Global::leaveCarbon() to protect the calls to AGL/Carbon.
format | the pixel format for the context. |
|
virtual |
Destroy a pixel format obtained with chooseAGLPixelFormat().
This method uses Global::enterCarbon() and Global::leaveCarbon() to protect the calls to AGL/Carbon.
format | a pixel format. |
|
virtual |
Destroy the AGLEventHandler, called by setCarbonWindow().
|
inlinevirtual |
Implements eq::agl::WindowIF.
Definition at line 106 of file include/eq/client/agl/window.h.
|
inlinevirtual |
Implements eq::agl::WindowIF.
Definition at line 112 of file include/eq/client/agl/window.h.
|
inlinevirtual |
Implements eq::agl::WindowIF.
Definition at line 109 of file include/eq/client/agl/window.h.
|
inline |
Definition at line 115 of file include/eq/client/agl/window.h.
|
virtual |
Set up an AGLEventHandler, called by setCarbonWindow().
|
virtual |
|
virtual |
Reimplemented from eq::GLWindow.
|
virtual |
Implements eq::agl::WindowIF.
|
virtual |
Set the AGL rendering context for this window.
This function should only be called from configInit() or configExit(). The context has to be set to 0 before it is destroyed.
context | the AGL rendering context. |
|
virtual |
Set the AGL PBuffer object to be used with the current AGL context.
pbuffer | the PBuffer. |
|
virtual |
Set the carbon window to be used with the current AGL context.
window | the window reference. |
|
virtual |
Implements eq::SystemWindow.