16#ifndef OSGVIEWER_PIXELBUFFERCARBON
17#define OSGVIEWER_PIXELBUFFERCARBON 1
19#if defined (__APPLE__) && (!__LP64__)
46 getState()->setGraphicsContext(
this);
48 if (_traits.valid() && _traits->sharedContext.valid())
50 getState()->setContextID( _traits->sharedContext->getState()->getContextID() );
51 incrementContextIDUsageCount( getState()->getContextID() );
61 virtual bool isSameKindAs(
const Object*
object)
const {
return dynamic_cast<const PixelBufferCarbon*
>(object)!=0; }
62 virtual const char* libraryName()
const {
return "osgViewer"; }
63 virtual const char* className()
const {
return "PixelBufferCarbon"; }
65 virtual bool valid()
const {
return _valid; }
68 virtual bool realizeImplementation();
71 virtual bool isRealizedImplementation()
const {
return _realized; }
74 virtual void closeImplementation();
77 virtual bool makeCurrentImplementation();
83 virtual bool releaseContextImplementation();
86 virtual void bindPBufferToTextureImplementation( GLenum buffer );
89 virtual void swapBuffersImplementation();
100 ~PixelBufferCarbon();
108 AGLPixelFormat _pixelformat;
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
static unsigned int createNewContextID()
Create a contextID for a new graphics context, this contextID is used to set up the osg::State associ...
GraphicsContext Traits object provides the specification of what type of graphics context is required...
Definition GraphicsContext:70
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Class to encapsulate platform-specific OpenGL context handle variables.
Definition GraphicsHandleCarbon:31
#define OSGVIEWER_EXPORT
Definition Export:40