From Stephan Huber, "attached you'll find a new GraphicsWindowCarbon-header and .cpp, the

changes I made:

+ put a warning in the console if a nonexistant screen is requested
+ add getters for the aglcontext and pixelformat -- I need access to
them in my own code.
"
This commit is contained in:
Robert Osfield
2007-06-08 11:04:30 +00:00
parent b4cd96ebdd
commit 3e8be9ac7d
2 changed files with 13 additions and 2 deletions

View File

@@ -121,6 +121,12 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
/// install the standard os-eventhandler
void installEventHandler();
/// get the AGL context
AGLContext getAGLContext() { return _context; }
// get the pixelformat
AGLPixelFormat getAGLPixelFormat() { return _pixelFormat; }
protected:
@@ -128,7 +134,7 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
void transformMouseXY(float& x, float& y);
AGLContext& getAGLContext() { return _context; }