19 #ifndef EQ_GLX_WINDOW_H
20 #define EQ_GLX_OS_WINDOW_H
22 #include <eq/client/glx/types.h>
23 #include <eq/client/glWindow.h>
62 GLXEWContext* glxewContext = 0 );
193 virtual void makeCurrent(
const bool cache =
true )
const;
200 const uint32_t barrier );
215 GLXContext _glXContext;
217 uint32_t _glXNVSwapGroup;
223 GLXEWContext* _glxewContext;
229 XID _createGLXWindow( GLXFBConfig* fbConfig,
const PixelViewport& pvp );
232 void _initSwapSync();
236 #endif // EQ_GLX_OS_WINDOW_H
virtual bool configInitGLXWindow(GLXFBConfig *fbConfig)
Initialize the window with a window and bind the glX context.
virtual bool configInitGLXPBuffer(GLXFBConfig *fbConfig)
Initialize the window with a PBuffer and bind the glX context.
Window(eq::Window *parent, Display *xDisplay=0, GLXEWContext *glxewContext=0)
Construct a new glX/X11 system window.
virtual XID getXDrawable() const =0
A Window represents an on-screen or off-screen drawable.
virtual XID getXDrawable() const
virtual GLXContext createGLXContext(GLXFBConfig *fbConfig)
Create a glX context.
virtual void makeCurrent(const bool cache=true) const
void leaveNVSwapBarrier()
Unbind a GLX_NV_swap_barrier.
virtual bool configInit()
Initialize this window for the glX window system.
virtual GLXContext getGLXContext() const =0
virtual bool processEvent(const WindowEvent &event)
A system window for OpenGL rendering.
virtual void setXDrawable(XID drawable)
Set the X11 drawable ID for this window.
virtual Display * getXDisplay()
GLWindow(Window *parent)
Construct a new OpenGL window.
virtual ~Window()
Destruct this glX window.
virtual void exitEventHandler()
Deregister with the GLXEventHandler, called by setXDrawable().
virtual void swapBuffers()
virtual void initEventHandler()
Register with the pipe's GLXEventHandler, called by setXDrawable().
Equalizer default implementation of a glX window.
virtual void setGLXContext(GLXContext context)
Set the glX rendering context for this window.
virtual GLXContext getGLXContext() const
virtual bool processEvent(const WindowEvent &event)=0
Process the given event.
The event handler for glX/X11 windows.
virtual void joinNVSwapBarrier(const uint32_t group, const uint32_t barrier)
Implementation untested for glX.
The interface defining the minimum functionality for a glX window.
virtual bool configInitGLXDrawable(GLXFBConfig *fbConfig)
Initialize the window's drawable (fullscreen, pbuffer or window) and bind the glX context...
A window-system event for a glx::WindowIF.
virtual GLXFBConfig * chooseGLXFBConfig()
Choose a GLX framebuffer config based on the window's attributes.
virtual Display * getXDisplay()=0
virtual void configExit()
GLXEWContext * glxewGetContext()