README.iOS
changeset 6589 46d985073364
parent 6534 8faa51147576
child 6654 2ecfb25be1e2
child 8314 24f2de48557b
     1.1 --- a/README.iOS	Sun Oct 14 01:30:42 2012 -0700
     1.2 +++ b/README.iOS	Sun Oct 14 01:49:13 2012 -0700
     1.3 @@ -114,16 +114,10 @@
     1.4  ==============================================================================
     1.5  
     1.6  Windows:
     1.7 -	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow the flag SDL_WINDOW_BORDERLESS).  Presently, landscape mode is not supported.
     1.8 -
     1.9 -Video:
    1.10 -	For real time frame-rates, you are advised to use strictly SDL 2.0 video calls.  Using compatibility video calls uploads an OpenGL texture for each frame drawn, and this operation is excruciatingly slow.
    1.11 +	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow the flag SDL_WINDOW_BORDERLESS).
    1.12  
    1.13  Textures:
    1.14 -	SDL for iPhone Textures supports only SDL_PIXELFORMAT_ABGR8888 and SDL_PIXELFORMAT_RGB24 pixel formats.  This is because texture support in SDL for iPhone is done through OpenGL ES, which supports fewer pixel formats than OpenGL, will not re-order pixel data for you, and has no support for color-paletted formats (without extensions).
    1.15 -
    1.16 -Audio:
    1.17 -	SDL for iPhone does not yet support audio input.
    1.18 +	The optimal texture formats on iOS are SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, and SDL_PIXELFORMAT_RGB24 pixel formats.
    1.19  
    1.20  Loading Shared Objects:
    1.21  	This is disabled by default since it seems to break the terms of the iPhone SDK agreement.  It can be re-enabled in SDL_config_iphoneos.h.
    1.22 @@ -143,7 +137,7 @@
    1.23  extern "C"
    1.24  void ShowFrame(void*)
    1.25  {
    1.26 -    ... do frame logic and rendering
    1.27 +    ... do event handling, frame logic and rendering
    1.28  }
    1.29  
    1.30  int main(int argc, char *argv[])
    1.31 @@ -156,13 +150,12 @@
    1.32  
    1.33          // Set up the game to run in the window animation callback on iOS
    1.34          // so that Game Center and so forth works correctly.
    1.35 -        SDL_iPhoneSetAnimationCallback(screen->GetWindow(), 1, ShowFrame, 0);
    1.36 +        SDL_iPhoneSetAnimationCallback(window, 1, ShowFrame, NULL);
    1.37  #else
    1.38 -        while ( gRunning ) {
    1.39 +        while ( running ) {
    1.40                  ShowFrame(0);
    1.41                  DelayFrame();
    1.42          }
    1.43 -        CleanUp();
    1.44  #endif
    1.45          return 0;
    1.46 -}
    1.47 \ No newline at end of file
    1.48 +}