OpenSceneGraph  3.0.1
Public Member Functions | Protected Attributes | List of all members
osgViewer::GraphicsHandleCocoa Class Reference

Class to encapsulate platform-specific OpenGL context handle variables. More...

Public Member Functions

 GraphicsHandleCocoa ()
void setNSOpenGLContext (NSOpenGLContext *context)
 Set native AGL graphics context.
NSOpenGLContext * getNSOpenGLContext () const
 Get native AGL graphics context.

Protected Attributes

NSOpenGLContext * _context

Detailed Description

Class to encapsulate platform-specific OpenGL context handle variables.

Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.

Constructor & Destructor Documentation

osgViewer::GraphicsHandleCocoa::GraphicsHandleCocoa ( )
inline

Member Function Documentation

NSOpenGLContext* osgViewer::GraphicsHandleCocoa::getNSOpenGLContext ( ) const
inline

Get native AGL graphics context.

void osgViewer::GraphicsHandleCocoa::setNSOpenGLContext ( NSOpenGLContext *  context)
inline

Set native AGL graphics context.

Member Data Documentation

NSOpenGLContext* osgViewer::GraphicsHandleCocoa::_context
protected

The documentation for this class was generated from the following file:

osg logo
Generated at Fri Sep 7 2012 17:49:53 for the OpenSceneGraph by doxygen 1.8.1.2.