From Stephan Huber, "Attached you'll find some enhancements by Adrian Egli and me for the

carbon-implementation of GraphicsWindow.  Now you can use an AGLDrawable
in conjunction with osgViewer/osgCompositeViewer."

Changes from Robert Osfield, changed std::cout to osg::notify(osg::INFO)
This commit is contained in:
Robert Osfield
2008-02-18 15:30:55 +00:00
parent e0e862e31a
commit 8e5c3363ef
2 changed files with 36 additions and 18 deletions

View File

@@ -113,16 +113,18 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
class WindowData : public osg::Referenced
{
public:
WindowData(WindowRef window):
_window(window), _installEventHandler(false) {}
WindowData(WindowRef window, AGLDrawable* drawable=NULL ): //ADEGLI
_window(window), _AGLDrawable(drawable) ,_installEventHandler(false) {} //ADEGLI
WindowRef getNativeWindowRef() { return _window; }
void setInstallEventHandler(bool flag) { _installEventHandler = flag; }
bool installEventHandler() { return _installEventHandler; }
AGLDrawable* getAGLDrawable() { return _AGLDrawable; } //ADEGLI
private:
WindowRef _window;
bool _installEventHandler;
WindowRef _window;
AGLDrawable* _AGLDrawable; //ADEGLI
bool _installEventHandler;
};