OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgViewer
api
Carbon
GraphicsHandleCarbon.h
Go to the documentation of this file.
1
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
2
*
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.
7
*
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.
12
*/
13
14
#ifndef OSGVIEWER_GRAPHICSHANDLECARBON
15
#define OSGVIEWER_GRAPHICSHANDLECARBON 1
16
17
#include <osgViewer/Export>
18
19
#include <Carbon/Carbon.h>
20
#include <AGL/agl.h>
21
22
23
namespace
osgViewer
24
{
25
30
class
OSGVIEWER_EXPORT
GraphicsHandleCarbon
31
{
32
public
:
33
34
GraphicsHandleCarbon
():
35
_context(0) {}
36
38
inline
void
setAGLContext
(AGLContext context) { _context = context; }
39
41
inline
AGLContext
getAGLContext
()
const
{
return
_context; }
42
43
protected
:
44
45
AGLContext
_context
;
46
};
47
48
}
49
50
#endif
osgViewer::GraphicsHandleCarbon::GraphicsHandleCarbon
GraphicsHandleCarbon()
Definition:
GraphicsHandleCarbon.h:34
OSGVIEWER_EXPORT
#define OSGVIEWER_EXPORT
Definition:
Export.h:40
osgViewer::GraphicsHandleCarbon
Definition:
GraphicsHandleCarbon.h:30
osgViewer::GraphicsHandleCarbon::_context
AGLContext _context
Definition:
GraphicsHandleCarbon.h:45
osgViewer::GraphicsHandleCarbon::setAGLContext
void setAGLContext(AGLContext context)
Definition:
GraphicsHandleCarbon.h:38
osgViewer
Definition:
GraphicsWindowQt.h:32
osgViewer::GraphicsHandleCarbon::getAGLContext
AGLContext getAGLContext() const
Definition:
GraphicsHandleCarbon.h:41
Generated on Tue Oct 4 2016 19:20:48 for OSG by
1.8.8