]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
updated readme for iOS compilation with instructions on how to modify SDL to use...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Feb 2011 05:35:14 +0000 (05:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Feb 2011 05:35:14 +0000 (05:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10812 d7cf8633-e32d-0410-b094-e92efae38249

README.iOS

index bc0974834b8df75d76799e4fa7eb6de5265a4bc6..8a40152fbde04ddb035bdf1401870d7d2b80f98a 100644 (file)
@@ -1,4 +1,11 @@
 To build DarkPlaces for iOS, you need to extract this zip into the source folder:
-http://ghdigital.com/~havoc/SDLiOS20110202.zip
+http://ghdigital.com/~havoc/SDLiOS20110205.zip
 
-This is built from SDL 1.3, to make an updated include folder and libSDL*.a files, simply build the SDL Application template for iPhoneOS and copy the include folder and two libSDL*.a files from there.
+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:
+src/video/uikit/SDL_uikitopenglview.m:        context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES1];
+to:
+src/video/uikit/SDL_uikitopenglview.m:        context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES2];
+
+Then simply open Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj and build libSDL for both simulator and device and then the SDL Application xcode template.
+
+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.