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
+2
-2
@@ -126,8 +126,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
drawstate->window = state->windows[i];
|
||||
drawstate->renderer = state->renderers[i];
|
||||
drawstate->sprite = LoadTexture(drawstate->renderer, "icon.bmp", true, NULL, NULL);
|
||||
drawstate->background = LoadTexture(drawstate->renderer, "sample.bmp", false, NULL, NULL);
|
||||
drawstate->sprite = LoadTexture(drawstate->renderer, "icon.bmp", true);
|
||||
drawstate->background = LoadTexture(drawstate->renderer, "sample.bmp", false);
|
||||
if (!drawstate->sprite || !drawstate->background) {
|
||||
quit(2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user