iOS: Updated demo README.

Philipp Wiesemann 2016-10-09 20:30:49 +02:00
parent 42f85aa29e
commit f662f68066
1 changed files with 3 additions and 3 deletions

View File

@ -2,15 +2,15 @@
About the iPhone OS Demo Applications About the iPhone OS Demo Applications
============================================================================== ==============================================================================
Demos.xcodeproj contains several targets for iPhone oriented SDL demos. These demos are written strictly using SDL 2.0 calls. All the demos except for Fireworks (which requires OpenGL ES) should work on platforms other than iPhone OS, though you'll need to write your own compile script. To run them on your favorite platform, you may wish to set the macros SCREEN_WIDTH and SCREEN_HEIGHT, located in common.h. Demos.xcodeproj contains several targets for iPhone oriented SDL demos. These demos are written strictly using SDL 2.0 calls. All the demos except for Fireworks (which requires OpenGL ES) should work on platforms other than iPhone OS, though you'll need to write your own compile script.
Common files: Common files:
common.c and common.h contain code common to all demo applications. This includes macros about the screen dimensions (in pixels), simple error handling, and functions for generating random numbers. common.c and common.h contain code common to all demo applications. This includes functions about delta timing (in seconds), simple error handling, and functions for generating random numbers.
Rectangles (rectangles.c): Rectangles (rectangles.c):
Draws randomly sized and colored rectangles all over the screen by using SDL_RenderFill. This is the simplest of all the demos. Draws randomly sized and colored rectangles all over the screen by using SDL_RenderFillRect. This is the simplest of all the demos.
Happy (happy.c): Happy (happy.c):