openscenegraph
|
Public Member Functions | |
GraphicsHandleCocoa () | |
void | setNSOpenGLContext (NSOpenGLContext *context) |
NSOpenGLContext * | getNSOpenGLContext () const |
Protected Attributes | |
NSOpenGLContext * | _context |
Class to encapsulate platform-specific OpenGL context handle variables. Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.
osgViewer::GraphicsHandleCocoa::GraphicsHandleCocoa | ( | ) | [inline] |
NSOpenGLContext* osgViewer::GraphicsHandleCocoa::getNSOpenGLContext | ( | ) | const [inline] |
Get native AGL graphics context.
void osgViewer::GraphicsHandleCocoa::setNSOpenGLContext | ( | NSOpenGLContext * | context | ) | [inline] |
Set native AGL graphics context.
NSOpenGLContext* osgViewer::GraphicsHandleCocoa::_context [protected] |