Skip to content

Commit

Permalink
iOS: Updated demo README.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Oct 9, 2016
1 parent 42f85aa commit f662f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Xcode-iOS/Demos/README
Expand Up @@ -2,15 +2,15 @@
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.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):

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):

Expand Down

0 comments on commit f662f68

Please sign in to comment.