Removed width/height parameters from LoadTexture()
You can directly access the texture width and height now.
This commit is contained in:
1 parent
dcb97a5f49
commit
efe122be4d
14 files changed
+49
-70
No files matched your search
@@ -263,13 +263,13 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
background = LoadTexture(renderer, "sample.bmp", false, NULL, NULL);
|
||||
background = LoadTexture(renderer, "sample.bmp", false);
|
||||
if (!background) {
|
||||
SDL_Log("Couldn't create background: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
sprite = LoadTexture(renderer, "icon.bmp", true, NULL, NULL);
|
||||
sprite = LoadTexture(renderer, "icon.bmp", true);
|
||||
if (!sprite) {
|
||||
SDL_Log("Couldn't create sprite: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
|
||||
Reference in new issue
Block a user