e8b5272b02
* fixed a bug with multi-touch and touch-id-generation on iOS and OS X. (will fix a bug reported by Colin Cochran, without ditching the existing logic) * removed unnecessary warning-flagss when generating xcode-projects via cmake, will enable the usage of OSG_AGGRESSIVE_WARNING_FLAGS * added support for 10.9 (OS X) * new cmake-variable: IPHONE_VERSION_MIN, this will set the deployment-target (previously hard-coded) If you set the IPHONE_VERSION_MIN to something like 7.0 osg gets compiled also for 64bit (amd64) * cmake defaults now to the clang compiler if IPHONE_VERSION_MIN > 4.2 * cmake now sets some xcode-settings so the compiler uses the c++98-standard (clang defaults to c++11, w/o this I got a lot of linking errors) * removed include-dir for avfoundation-plugin as not needed on OSX/IOS. * enhanced the ios-example, will now show multitouch-information on a hud (similar to the osgmultitouch-example), and more importantly, will compile + link out of the box * small enhancements for the osc-device-plugin (send only one msg for MOVE/DRAG, even if multiple msgs/event is enabled) * better memory-handling for the zeroconf-plugin * fixed a possible bug in the rest-http-plugin when receiving mouse-events. * incorporated a fix from Colin Cochran "forwarded touch events are not transformed into the GL UIView“ "
33 lines
649 B
Objective-C
33 lines
649 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 <osg/CameraNode>
|
|
#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
|
|
|