Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404438
This commit is contained in:
parent
d7496843fc
commit
a0e019f786
73 changed files with 854 additions and 1068 deletions
|
@ -36,11 +36,11 @@ quit(int rc)
|
|||
exit(rc);
|
||||
}
|
||||
|
||||
SDL_TextureID
|
||||
LoadSprite(SDL_WindowID window, char *file)
|
||||
SDL_Texture *
|
||||
LoadSprite(SDL_Window * window, char *file)
|
||||
{
|
||||
SDL_Surface *temp;
|
||||
SDL_TextureID sprite;
|
||||
SDL_Texture *sprite;
|
||||
|
||||
/* Load the sprite image */
|
||||
temp = SDL_LoadBMP(file);
|
||||
|
@ -69,7 +69,7 @@ LoadSprite(SDL_WindowID window, char *file)
|
|||
}
|
||||
|
||||
void
|
||||
MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
|
||||
MoveSprites(SDL_Window * window, SDL_Texture * sprite)
|
||||
{
|
||||
int i, n;
|
||||
int window_w, window_h;
|
||||
|
@ -113,8 +113,8 @@ main(int argc, char *argv[])
|
|||
{
|
||||
int i, done;
|
||||
const char *driver;
|
||||
SDL_WindowID window;
|
||||
SDL_TextureID sprite;
|
||||
SDL_Window *window;
|
||||
SDL_Texture *sprite;
|
||||
int window_w, window_h;
|
||||
int sprite_w, sprite_h;
|
||||
SDL_Event event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue