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