OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgViewer::GraphicsHandleCocoa Class Reference

#include <GraphicsHandleCocoa.h>

Public Member Functions

 GraphicsHandleCocoa ()
 
void setNSOpenGLContext (NSOpenGLContext *context)
 
NSOpenGLContext * getNSOpenGLContext () const
 

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.

Definition at line 33 of file GraphicsHandleCocoa.h.

Constructor & Destructor Documentation

osgViewer::GraphicsHandleCocoa::GraphicsHandleCocoa ( )
inline

Definition at line 37 of file GraphicsHandleCocoa.h.

Member Function Documentation

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

Get native AGL graphics context.

Definition at line 44 of file GraphicsHandleCocoa.h.

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

Set native AGL graphics context.

Definition at line 41 of file GraphicsHandleCocoa.h.

Member Data Documentation

NSOpenGLContext* osgViewer::GraphicsHandleCocoa::_context
protected

Definition at line 48 of file GraphicsHandleCocoa.h.


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