dbf88cc209
* force _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC for IOS device + simulator as the test does not pick the right implementation * fixed a small compile-bug for iphone-example * added a check to prevent multiple realization of a GraphicsWindowIOS-object "
32 lines
623 B
Objective-C
32 lines
623 B
Objective-C
//Created by Thomas Hogarth 2009
|
|
|
|
//force the link to our desired osgPlugins
|
|
#include "osgPlugins.h"
|
|
|
|
#include <osgDB/ReadFile>
|
|
#include <osg/MatrixTransform>
|
|
#include <osgText/Text>
|
|
#include <osgViewer/Viewer>
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
@interface iphoneViewerAppDelegate : NSObject <UIApplicationDelegate, UIAccelerometerDelegate> {
|
|
|
|
UIWindow* _window; //main application window
|
|
|
|
CADisplayLink* _displayLink;
|
|
|
|
osg::ref_ptr<osgViewer::Viewer> _viewer;
|
|
osg::ref_ptr<osg::MatrixTransform> _root;
|
|
|
|
}
|
|
|
|
@property (nonatomic, retain) /*IBOutlet*/ UIWindow *_window;
|
|
|
|
- (void)updateScene;
|
|
|
|
@end
|
|
|