Removed width/height parameters from LoadTexture()
Some checks are pending
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

You can directly access the texture width and height now.
This commit is contained in:
Sam Lantinga
2025-03-14 10:38:11 -07:00
parent dcb97a5f49
commit efe122be4d
14 changed files with 49 additions and 70 deletions

View File

@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
SDL_RenderClear(renderer);
sprite = LoadTexture(renderer, "icon.bmp", true, NULL, NULL);
sprite = LoadTexture(renderer, "icon.bmp", true);
if (!sprite) {
quit(6);
}