From Martin Lavery, StatsHandler added to the ViewerCocoa example
This commit is contained in:
Binary file not shown.
@@ -1 +0,0 @@
|
||||
"DragAndDropHere" = "Drag-and-Drop\nyour .osg model here!";
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
IBClasses = (
|
||||
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{
|
||||
ACTIONS = {takeBackgroundColourFrom = id; };
|
||||
CLASS = NSColorWell;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSControl;
|
||||
},
|
||||
{
|
||||
ACTIONS = {resetPosition = id; takeBackgroundColorFrom = id; };
|
||||
CLASS = ViewerCocoa;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSOpenGLView;
|
||||
},
|
||||
{CLASS = "the_sender"; LANGUAGE = ObjC; SUPERCLASS = NSColorWell; }
|
||||
);
|
||||
IBVersion = 1;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>337 200 528 286 0 0 1280 1002 </string>
|
||||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>213</key>
|
||||
<string>539 268 236 724 0 0 1280 1002 </string>
|
||||
<key>29</key>
|
||||
<string>39 393 338 44 0 0 1280 1002 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>446.1</string>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>213</integer>
|
||||
<integer>29</integer>
|
||||
<integer>231</integer>
|
||||
<integer>21</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8P135</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -269,7 +269,8 @@ static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_va
|
||||
// osg::setNotifyLevel( osg::DEBUG_FP );
|
||||
Viewer = new osgViewer::Viewer;
|
||||
graphicsWindow = Viewer->setUpViewerAsEmbeddedInWindow(0,0,800,800);
|
||||
|
||||
// Builts in Stats handler
|
||||
Viewer->addEventHandler(new osgViewer::StatsHandler);
|
||||
#ifdef VIEWER_USE_SHARED_CONTEXTS
|
||||
// Workaround: osgViewer::Viewer automatically increments its context ID values.
|
||||
// Since we're using a shared context, we want all Viewer's to use the same context ID.
|
||||
@@ -282,6 +283,7 @@ static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_va
|
||||
Viewer->getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS);
|
||||
// Use a trackball manipulator...matches nicely with the Mighty Mouse Scrollball.
|
||||
Viewer->setCameraManipulator(new osgGA::TrackballManipulator);
|
||||
|
||||
}
|
||||
|
||||
- (void) initAnimationTimer
|
||||
|
||||
Reference in New Issue
Block a user