Sample code showing how to use Ogre3D on iOS,
- with an already existing
UIView(allows to embed to Ogre view in any app), - relying on Cocoa Touch for touch and accelerometer handling.
For more information, read the dedicated blog post.
- Properly handling device orientation changes.
- Download and install the iOS Ogre SDK;
- Dowload iOS Ogre dependencies and unpack it at the root of where is your installed SDK (you should have a directory
iOSDependenciesin the SDK's); - In XCode, having opened
OgreExistingView.xcodeproj:- Open the project
OgreExistingViewsettings; - Go to the bottom of the Build Settings tab;
- Make sure
OGRE_SDK_ROOTis set to the path to the Ogre iOS SDK.
- Open the project
