]> git.xonotic.org Git - xonotic/darkplaces.git/blob - README.iOS
updated readme for iOS compilation with instructions on how to modify SDL to use...
[xonotic/darkplaces.git] / README.iOS
1 To build DarkPlaces for iOS, you need to extract this zip into the source folder:
2 http://ghdigital.com/~havoc/SDLiOS20110205.zip
3
4 This is built from a personally-modified SDL 1.3, to make an updated include folder and libSDL*.a files, you need to get the SDL 1.3 source (from hg or a nightly build or whatever), then modify this line:
5 src/video/uikit/SDL_uikitopenglview.m:        context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES1];
6 to:
7 src/video/uikit/SDL_uikitopenglview.m:        context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES2];
8
9 Then simply open Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj and build libSDL for both simulator and device and then the SDL Application xcode template.
10
11 Then copy the include folder and two libSDL*.a files from the Xcode-iPhoneOS/SDL/build/Debug-template (or Release-template) into the darkplaces source folder, and it will build with your updated files.