Replaced the X11 Window by Carbon WindowRef in the WindowData structure.

This commit is contained in:
Robert Osfield
2007-03-28 08:52:44 +00:00
parent b331b77269
commit d30a33247d

View File

@@ -32,10 +32,10 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
public:
GraphicsWindowCarbon(osg::GraphicsContext::Traits* traits):
_ownWindow(true),
_valid(false),
_initialized(false),
_realized(false)
_realized(false),
_ownsWindow(true)
{
_traits = traits;
@@ -99,13 +99,13 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
bool handleMouseEvent(EventRef theEvent);
bool handleKeyboardEvent(EventRef theEvent);
/** WindowData is used to pass in the X11 window handle attached the GraphicsContext::Traits structure. */
/** WindowData is used to pass in the Carbon window handle attached the GraphicsContext::Traits structure. */
struct WindowData : public osg::Referenced
{
WindowData(Window window):
WindowData(WindowRef window):
_window(window) {}
Window _window;
WindowRef _window;
};
protected: