Added bare bones osgGA::SimpleViewer class to help simplify OSG setup when embedding the OSG

into existing GUI applications, and for one one a single camera, single window is required.
This commit is contained in:
Robert Osfield
2006-09-25 16:25:53 +00:00
parent 78444878c3
commit 5c0eb0b013
17 changed files with 552 additions and 179 deletions

View File

@@ -77,9 +77,9 @@ bool EventQueue::copyEvents(Events& events) const
}
void EventQueue::windowResize(float Xmin, float Ymin, float Xmax, float Ymax)
void EventQueue::windowResize(int x, int y, unsigned int width, unsigned int height, bool updateMouseRange)
{
_accumulateEventState->setWindowSize(Xmin, Ymin, Xmax, Ymax);
_accumulateEventState->setWindowRectangle(x, y, width, height, updateMouseRange);
GUIEventAdapter* event = new GUIEventAdapter(*_accumulateEventState);
event->setEventType(GUIEventAdapter::RESIZE);