iOS Xcode project template fixes/changes.
- Embedded headers - Embedded Universal Device/Simulator libSDL.a - Changed search paths. - Removed cruft from copy resources.
This commit is contained in:
parent
dab1918039
commit
d89219fa93
3 changed files with 160 additions and 28 deletions
|
@ -32,9 +32,10 @@ render(void)
|
|||
r = randomInt(50, 255);
|
||||
g = randomInt(50, 255);
|
||||
b = randomInt(50, 255);
|
||||
SDL_SetRenderDrawColor(r, g, b, 255);
|
||||
|
||||
/* Fill the rectangle in the color */
|
||||
SDL_RenderFill(r, g, b, 255, &rect);
|
||||
SDL_RenderFillRect(&rect);
|
||||
|
||||
/* update screen */
|
||||
SDL_RenderPresent();
|
||||
|
@ -69,7 +70,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* Fill screen with black */
|
||||
SDL_RenderFill(0, 0, 0, 0, NULL);
|
||||
SDL_RenderClear();
|
||||
|
||||
/* Enter render loop, waiting for user to quit */
|
||||
done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue