diff Xcode-iPhoneOS/Demos/src/fireworks.c @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents 20326ba2bda2
children 06c7423f8c60
line wrap: on
line diff
--- a/Xcode-iPhoneOS/Demos/src/fireworks.c	Thu Jan 21 05:49:41 2010 +0000
+++ b/Xcode-iPhoneOS/Demos/src/fireworks.c	Thu Jan 21 06:21:52 2010 +0000
@@ -363,8 +363,7 @@
 int
 main(int argc, char *argv[])
 {
-
-    SDL_WindowID windowID;      /* ID of main window */
+    SDL_Window *window;         /* main window */
     Uint32 startFrame;          /* time frame began to process */
     Uint32 endFrame;            /* time frame ended processing */
     Uint32 delay;               /* time to pause waiting to draw next frame */
@@ -389,10 +388,10 @@
     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
 
     /* create main window and renderer */
-    windowID = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
+    window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
                                 SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
                                 SDL_WINDOW_BORDERLESS);
-    SDL_CreateRenderer(windowID, 0, 0);
+    SDL_CreateRenderer(window, 0, 0);
 
     /* load the particle texture */
     initializeTexture();