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