~vcs-imports/libsdl/trunk

« back to all changes in this revision

Viewing changes to test/testnative.c

  • Committer: slouken
  • Date: 2010-01-21 06:21:52 UTC
  • Revision ID: svn-v4:c70aab31-4412-0410-b14c-859654838e24:trunk/SDL:5525
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    exit(rc);
37
37
}
38
38
 
39
 
SDL_TextureID
40
 
LoadSprite(SDL_WindowID window, char *file)
 
39
SDL_Texture *
 
40
LoadSprite(SDL_Window * window, char *file)
41
41
{
42
42
    SDL_Surface *temp;
43
 
    SDL_TextureID sprite;
 
43
    SDL_Texture *sprite;
44
44
 
45
45
    /* Load the sprite image */
46
46
    temp = SDL_LoadBMP(file);
69
69
}
70
70
 
71
71
void
72
 
MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
 
72
MoveSprites(SDL_Window * window, SDL_Texture * sprite)
73
73
{
74
74
    int i, n;
75
75
    int window_w, window_h;
113
113
{
114
114
    int i, done;
115
115
    const char *driver;
116
 
    SDL_WindowID window;
117
 
    SDL_TextureID sprite;
 
116
    SDL_Window *window;
 
117
    SDL_Texture *sprite;
118
118
    int window_w, window_h;
119
119
    int sprite_w, sprite_h;
120
120
    SDL_Event event;