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
|
@ -38,7 +38,7 @@ int
|
|||
main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
SDL_WindowID windowID;
|
||||
SDL_Window *window;
|
||||
int done;
|
||||
SDL_Event event;
|
||||
|
||||
|
@ -51,13 +51,13 @@ main(int argc, char *argv[])
|
|||
srand(time(NULL));
|
||||
|
||||
/* create window and renderer */
|
||||
windowID =
|
||||
window =
|
||||
SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
|
||||
SDL_WINDOW_SHOWN);
|
||||
if (windowID == 0) {
|
||||
if (window == 0) {
|
||||
fatalError("Could not initialize Window");
|
||||
}
|
||||
if (SDL_CreateRenderer(windowID, -1, 0) != 0) {
|
||||
if (SDL_CreateRenderer(window, -1, 0) != 0) {
|
||||
fatalError("Could not create renderer");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue