From: havoc Date: Sun, 6 Feb 2011 05:35:14 +0000 (+0000) Subject: updated readme for iOS compilation with instructions on how to modify SDL to use... X-Git-Tag: xonotic-v0.5.0~438^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61043093f4e24d69da9d365e98d6d88ef4ef9bed;p=xonotic%2Fdarkplaces.git updated readme for iOS compilation with instructions on how to modify SDL to use OpenGL ES 2.0 (as required by darkplaces) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10812 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/README.iOS b/README.iOS index bc097483..8a40152f 100644 --- a/README.iOS +++ b/README.iOS @@ -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.