19 #ifndef EQ_AGL_WINDOW_H
20 #define EQ_AGL_WINDOW_H
22 #include <eq/client/defines.h>
25 #include <eq/client/agl/types.h>
26 #include <eq/client/glWindow.h>
239 EQ_API
virtual void makeCurrent(
const bool cache =
true )
const;
246 const uint32_t barrier );
254 AGLContext _aglContext;
257 WindowRef _carbonWindow;
260 AGLPbuffer _aglPBuffer;
266 CGDirectDisplayID _cgDisplayID;
271 void _initSwapSync( AGLContext context );
276 #endif // EQ_AGL_WINDOW_H
virtual AGLContext getAGLContext() const =0
virtual AGLPbuffer getAGLPBuffer() const
virtual bool configInit()
Initialize this window for the AGL window system.
virtual void configExit()
virtual void initEventHandler()
Set up an AGLEventHandler, called by setCarbonWindow().
virtual AGLPbuffer getAGLPBuffer() const =0
A Window represents an on-screen or off-screen drawable.
Equalizer default implementation of an AGL window interface.
A system window for OpenGL rendering.
CGDirectDisplayID getCGDisplayID() const
virtual WindowRef getCarbonWindow() const
virtual void joinNVSwapBarrier(const uint32_t group, const uint32_t barrier)
Not implemented for AGL.
virtual void setAGLPBuffer(AGLPbuffer pbuffer)
Set the AGL PBuffer object to be used with the current AGL context.
WindowIF(eq::Window *parent)
Construct a new AGL window for the given eq::Window.
virtual void exitEventHandler()
Destroy the AGLEventHandler, called by setCarbonWindow().
virtual bool processEvent(const WindowEvent &event)
virtual bool configInitAGLPBuffer()
Initialize the window with an offscreen AGL PBuffer.
The interface defining the minimum functionality for an AGL window.
virtual void makeCurrent(const bool cache=true) const
virtual bool configInitAGLFullscreen()
Initialize the window with a fullscreen Carbon window.
virtual ~Window()
Destruct the AGL window.
virtual bool processEvent(const WindowEvent &event)=0
Process the given event.
Window(eq::Window *parent, CGDirectDisplayID displayID=0)
Create a new AGL window for the given eq::Window.
The event handler for AGL windows.
virtual void swapBuffers()
virtual void setAGLContext(AGLContext context)
Set the AGL rendering context for this window.
virtual bool configInitAGLWindow()
Initialize the window with a normal Carbon window.
virtual void destroyAGLPixelFormat(AGLPixelFormat format)
Destroy a pixel format obtained with chooseAGLPixelFormat().
virtual AGLContext getAGLContext() const
virtual AGLPixelFormat chooseAGLPixelFormat()
Choose a pixel format based on the window's attributes.
A window-system event with the native Carbon event, used for AGL.
virtual WindowRef getCarbonWindow() const =0
virtual void setCarbonWindow(WindowRef window)
Set the carbon window to be used with the current AGL context.
virtual AGLContext createAGLContext(AGLPixelFormat format)
Create an AGL context.
virtual bool configInitAGLDrawable()
Initialize the window's drawable (fullscreen, pbuffer or window) and bind the AGL context...
virtual ~WindowIF()
Destruct the AGL window.