From Stephan Huber, "New features:

+ Multi-display-support
+ automatic hiding of the menubar/dock if one of the windows intersects
the menubar/dock

Bugfixes:
+ event-handling was done by the first opened window, other windows did
not receive events -- fixed
+ mouse-coordinates were absolute, now they are relative to the window.

known bugs:
+ windows with decoration and in fullscreen-size are moved by the system
a little bit, so that the titlebar is accessible/visible. So if you want
real fullscreen-windows, don't decorate the window :)

I updated the XCode-project-file so all ported examples are linked
against osgViewer."
This commit is contained in:
Robert Osfield
2007-01-12 21:33:19 +00:00
parent 694b304c00
commit 785fd5c0d9
3 changed files with 520 additions and 763 deletions

View File

@@ -82,6 +82,11 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
void requestClose() { _closeRequested = true; }
virtual void resizedImplementation(int x, int y, int width, int height);
WindowRef getNativeWindowRef() { return _window; }
bool handleMouseEvent(EventRef theEvent);
bool handleKeyboardEvent(EventRef theEvent);
protected:
@@ -99,11 +104,7 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
AGLContext _context;
AGLPixelFormat _pixelFormat;
private:
void handleMouseEvent(EventRef theEvent);
void handleKeyboardEvent(EventRef theEvent);
private:
bool _closeRequested;
};