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
iOSDependencies
in the SDK's); - In XCode, having opened
OgreExistingView.xcodeproj
:- Open the project
OgreExistingView
settings; - Go to the bottom of the Build Settings tab;
- Make sure
OGRE_SDK_ROOT
is set to the path to the Ogre iOS SDK.
- Open the project