Running on iPad
If you have the latest version of the Bork3D Game Engine, you don't need to do anything. Just select the iPad target executable and build.
Porting an older project
If you need to convert an older project to iPad, just follow these steps:
- You first need the iPhone 3.2 SDK
- Using your existing iPhone project, convert it to an iPad project by going to the Project menu and selecting Upgrade Current Target for iPad
- You have the option of creating a universal application. If you choose to create two separate applications, you can differentiate between the two by doing the following:
- Select the new target, choose Get Info, select Build, and add a new User-Defined Setting named OTHER_CFLAGS. Set it to "-DRUDE_IPAD=1". This will allow you to use statements like "if(RUDE_IPAD)" or "#if RUDE_IPAD" in your code.
- Open the iPad MainWindow.xib and increase the size of the OpenGL drawing context to 768x1024
- You may need to change your RGL.SetViewport() calls to use a 768x1024 window instead of 480x320, depending upon how you've structured your code. It's recommended you use the RGL.GetDeviceHeight() / GetDeviceWidth() interfaces instead.
That's it! Welcome to iPad!