1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
14#ifndef OSGVIEWER_GRAPHICSHANDLECARBON
15#define OSGVIEWER_GRAPHICSHANDLECARBON 1
17#include <osgViewer/Export>
19#include <Carbon/Carbon.h>
26/** Class to encapsulate platform-specific OpenGL context handle variables.
27 * Derived osg::GraphicsContext classes can inherit from this class to
28 * share OpenGL resources.*/
30class OSGVIEWER_EXPORT GraphicsHandleCarbon
34 GraphicsHandleCarbon():
37 /** Set native AGL graphics context.*/
38 inline void setAGLContext(AGLContext context) { _context = context; }
40 /** Get native AGL graphics context.*/
41 inline AGLContext getAGLContext() const { return _context; }