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:
@@ -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; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user