19#ifndef OSGVIEWER_PIXELBUFFERX11
20#define OSGVIEWER_PIXELBUFFERX11 1
35 virtual const char*
libraryName()
const {
return "osgViewer"; }
36 virtual const char*
className()
const {
return "PixelBufferX11"; }
88#ifdef GLX_SGIX_pbuffer
89 typedef Pbuffer ( *GLXCreateGLXPbufferSGIX_FuncPtr) (Display *dpy, GLXFBConfig config,
unsigned int,
unsigned height,
int* attrib_list);
90 typedef void ( *GLXDestroyGLXPbufferSGIX_FuncPtr) (Display *dpy,
Pbuffer pbuf);
91 typedef int ( *GLXQueryGLXPbufferSGIX_FuncCPtr) (Display *dpy,
Pbuffer pbuf,
int attribute,
unsigned int *value);
92 typedef GLXFBConfig ( *GLXGetFBConfigFromVisualSGIX_FuncPtr) (Display *dpy, XVisualInfo *vis);
94 GLXCreateGLXPbufferSGIX_FuncPtr _glXCreateGLXPbufferSGIX;
95 GLXDestroyGLXPbufferSGIX_FuncPtr _glXDestroyGLXPbufferSGIX;
96 GLXQueryGLXPbufferSGIX_FuncCPtr _glXQueryGLXPbufferSGIX;
97 GLXGetFBConfigFromVisualSGIX_FuncPtr _glXGetFBConfigFromVisualSGIX;
The osgViewer library provides high level viewer functionality designed to make it easier to write a ...
Base class for providing Windowing API agnostic access to creating and managing graphics context.
Definition GraphicsContext:30
GraphicsContext Traits object provides the specification of what type of graphics context is required...
Definition GraphicsContext:70
Object()
Construct an object.
Definition Object:69
Class to encapsulate platform-specific OpenGL context handle variables.
Definition GraphicsHandleX11:45
GLXPbuffer Pbuffer
Definition GraphicsHandleX11:63
bool _realized
Definition PixelBufferX11:83
bool _initialized
Definition PixelBufferX11:82
virtual bool releaseContextImplementation()
Release the graphics context.
virtual void bindPBufferToTextureImplementation(GLenum buffer)
Bind the graphics context to associated texture implementation.
virtual const char * className() const
return the name of the object's class type.
Definition PixelBufferX11:36
virtual void swapBuffersImplementation()
Swap the front and back buffers.
virtual bool isRealizedImplementation() const
Return true if the graphics context has been realised and is ready to use.
Definition PixelBufferX11:44
Pbuffer & getPbuffer()
Definition PixelBufferX11:68
bool _useSGIX
Definition PixelBufferX11:86
bool _useGLX1_3
Definition PixelBufferX11:85
Pbuffer _pbuffer
Definition PixelBufferX11:79
virtual bool isSameKindAs(const Object *object) const
Definition PixelBufferX11:34
virtual void closeImplementation()
Close the graphics context.
XVisualInfo * _visualInfo
Definition PixelBufferX11:80
virtual bool valid() const
Return whether a valid and usable GraphicsContext has been created.
Definition PixelBufferX11:38
virtual bool makeCurrentImplementation()
Make this graphics context current.
virtual bool realizeImplementation()
Realise the GraphicsContext.
virtual bool makeContextCurrentImplementation(osg::GraphicsContext *readContext)
Make this graphics context current with specified read context implementation.
bool _valid
Definition PixelBufferX11:78
virtual const char * libraryName() const
return the name of the object's library.
Definition PixelBufferX11:35
PixelBufferX11(osg::GraphicsContext::Traits *traits)
#define OSGVIEWER_EXPORT
Definition Export:40