Equalizer
1.11.0
Parallel Rendering Framework
|
A system window for CPU rendering on X11. More...
#include <window.h>
Public Member Functions | |
Window (NotifierInterface &parent, const WindowSettings &settings, Display *xDisplay) | |
bool | configInit () override |
Initialize this system window. More... | |
void | configExit () override |
De-initialize this system window. More... | |
void | makeCurrent (bool) const override |
Make the system window rendering context and drawable current. More... | |
void | doneCurrent () const override |
This results in no context being current in the current thread. More... | |
void | bindFrameBuffer () const override |
Bind the window's FBO, if it uses an FBO drawable. More... | |
void | bindDrawFrameBuffer () const override |
Bind the window's draw FBO, used for multisampling. More... | |
void | updateFrameBuffer () const override |
Update the window's FBO from the multisampled FBO. More... | |
void | swapBuffers () override |
Swap the front and back buffer. More... | |
void | joinNVSwapBarrier (const uint32_t, const uint32_t) override |
Join a NV_swap_group. More... | |
void | queryDrawableConfig (eq::DrawableConfig &drawableConfig) override |
Set up the given drawable based on the current context. More... | |
void | flush () override |
Flush all command buffers. More... | |
void | finish () override |
Finish execution of all commands. More... | |
virtual Display * | getXDisplay () |
virtual XID | getXDrawable () const |
Public Member Functions inherited from eq::SystemWindow | |
EQ_API | SystemWindow (NotifierInterface &parent, const WindowSettings &settings) |
Create a new SystemWindow for the given eq::Window. More... | |
virtual EQ_API | ~SystemWindow () |
Destroy the SystemWindow. More... | |
virtual const GLEWContext * | glewGetContext () const |
Get the GLEW context for this window. More... | |
EQ_API EventOCommand | sendError (const uint32_t error) |
Send a window error event to the application node. More... | |
virtual EQ_API bool | processEvent (const Event &event) |
Process an event. More... | |
EQ_API void | setPixelViewport (const PixelViewport &pvp) |
Set the window's pixel viewport wrt its parent pipe. More... | |
EQ_API const PixelViewport & | getPixelViewport () const |
EQ_API uint32_t | getColorFormat () const |
EQ_API void | setName (const std::string &name) |
Set the window's name. More... | |
EQ_API const std::string & | getName () const |
EQ_API int32_t | getIAttribute (const WindowSettings::IAttribute attr) const |
EQ_API const SystemWindow * | getSharedContextWindow () const |
virtual const util::FrameBufferObject * | getFrameBufferObject () const |
virtual util::FrameBufferObject * | getFrameBufferObject () |
Data Access | |
virtual void | setXDrawable (XID drawable) |
Set the X11 drawable ID for this window. More... | |
A system window for CPU rendering on X11.
Example usage:
Definition at line 39 of file x11/window.h.
|
inlineoverridevirtual |
Bind the window's draw FBO, used for multisampling.
Implements eq::SystemWindow.
Definition at line 50 of file x11/window.h.
|
inlineoverridevirtual |
Bind the window's FBO, if it uses an FBO drawable.
Implements eq::SystemWindow.
Definition at line 49 of file x11/window.h.
|
overridevirtual |
De-initialize this system window.
This function might be called on partially or uninitialized system windows, and the implemenation has therefore be tolerant enough to handle this case.
Implements eq::SystemWindow.
|
overridevirtual |
Initialize this system window.
This method should take into account all attributes of the parent Window.
Implements eq::SystemWindow.
|
inlineoverridevirtual |
This results in no context being current in the current thread.
This function resets the pipe's make current cache.
Implements eq::SystemWindow.
Definition at line 48 of file x11/window.h.
|
inlineoverridevirtual |
Finish execution of all commands.
Implements eq::SystemWindow.
Definition at line 56 of file x11/window.h.
References flush().
|
overridevirtual |
Flush all command buffers.
Implements eq::SystemWindow.
Referenced by finish().
|
virtual |
|
inlinevirtual |
Definition at line 62 of file x11/window.h.
|
inlineoverridevirtual |
Join a NV_swap_group.
See WGL or GLX implementation and OpenGL extension for details on how to implement this function.
group | the swap group name. |
barrier | the swap barrier name. |
Implements eq::SystemWindow.
Definition at line 53 of file x11/window.h.
|
inlineoverridevirtual |
Make the system window rendering context and drawable current.
This function invalidates the pipe's make current cache.
Implements eq::SystemWindow.
Definition at line 47 of file x11/window.h.
|
overridevirtual |
|
inlinevirtual |
Set the X11 drawable ID for this window.
This function should only be called from configInit() or configExit().
drawable | the X11 drawable ID. |
Definition at line 74 of file x11/window.h.
|
inlineoverridevirtual |
Swap the front and back buffer.
Implements eq::SystemWindow.
Definition at line 52 of file x11/window.h.
|
inlineoverridevirtual |
Update the window's FBO from the multisampled FBO.
Implements eq::SystemWindow.
Definition at line 51 of file x11/window.h.