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

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

Inheritance diagram for osgViewer::GraphicsHandleCocoa:
Inheritance graph
[legend]
Collaboration diagram for osgViewer::GraphicsHandleCocoa:
Collaboration graph
[legend]

Public Member Functions

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

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.

Member Function Documentation

◆ getNSOpenGLContext()

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

Get native AGL graphics context.

◆ setNSOpenGLContext()

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

Set native AGL graphics context.


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