Equalizer
1.12.0
Parallel Rendering Framework
|
Helper window to allow Open GL context sharing between Qt widgets and windows created by Equalizer. More...
#include <shareContextWindow.h>
Public Member Functions | |
ShareContextWindow (QOpenGLContext *context, NotifierInterface &parent, const WindowSettings &settings) | |
QOpenGLContext * | getContext () const |
bool | configInit () final |
Initialize this system window. More... | |
void | configExit () final |
De-initialize this system window. More... | |
void | makeCurrent (const bool) const final |
Make the system window rendering context and drawable current. More... | |
void | doneCurrent () const final |
This results in no context being current in the current thread. More... | |
void | bindFrameBuffer () const final |
Bind the window's FBO, if it uses an FBO drawable. More... | |
void | bindDrawFrameBuffer () const final |
Bind the window's draw FBO, used for multisampling. More... | |
void | updateFrameBuffer () const final |
Update the window's FBO from the multisampled FBO. More... | |
void | swapBuffers () final |
Swap the front and back buffer. More... | |
void | flush () final |
Flush all command buffers. More... | |
void | finish () final |
Finish execution of all commands. More... | |
void | joinNVSwapBarrier (const uint32_t, const uint32_t) final |
Join a NV_swap_group. More... | |
void | queryDrawableConfig (DrawableConfig &) final |
Set up the given drawable based on the current context. More... | |
bool | processEvent (const Event &) final |
Process an event. More... | |
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... | |
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 () |
Helper window to allow Open GL context sharing between Qt widgets and windows created by Equalizer.
This window is not intended to be used for any actual work except for being able to provide a share OpenGLContext to WindowSystem::createWindow through the WindowSettings.
Definition at line 38 of file shareContextWindow.h.
|
inlinefinalvirtual |
Bind the window's draw FBO, used for multisampling.
Implements eq::SystemWindow.
Definition at line 59 of file shareContextWindow.h.
|
inlinefinalvirtual |
Bind the window's FBO, if it uses an FBO drawable.
Implements eq::SystemWindow.
Definition at line 58 of file shareContextWindow.h.
|
inlinefinalvirtual |
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.
Definition at line 55 of file shareContextWindow.h.
|
inlinefinalvirtual |
Initialize this system window.
This method should take into account all attributes of the parent Window.
Implements eq::SystemWindow.
Definition at line 54 of file shareContextWindow.h.
|
inlinefinalvirtual |
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 57 of file shareContextWindow.h.
|
inlinefinalvirtual |
Finish execution of all commands.
Implements eq::SystemWindow.
Definition at line 63 of file shareContextWindow.h.
|
inlinefinalvirtual |
Flush all command buffers.
Implements eq::SystemWindow.
Definition at line 62 of file shareContextWindow.h.
|
inlinefinalvirtual |
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 64 of file shareContextWindow.h.
|
inlinefinalvirtual |
Make the system window rendering context and drawable current.
This function invalidates the pipe's make current cache.
Implements eq::SystemWindow.
Definition at line 56 of file shareContextWindow.h.
|
inlinefinalvirtual |
Process an event.
Reimplemented from eq::SystemWindow.
Definition at line 67 of file shareContextWindow.h.
|
inlinefinalvirtual |
Set up the given drawable based on the current context.
Implements eq::SystemWindow.
Definition at line 66 of file shareContextWindow.h.
|
inlinefinalvirtual |
Swap the front and back buffer.
Implements eq::SystemWindow.
Definition at line 61 of file shareContextWindow.h.
|
inlinefinalvirtual |
Update the window's FBO from the multisampled FBO.
Implements eq::SystemWindow.
Definition at line 60 of file shareContextWindow.h.