Texture resizing

This commit is contained in:
2021-11-04 13:28:28 -07:00
parent 21e19ba995
commit c61a63c30f
3 changed files with 54 additions and 32 deletions

View File

@ -22,7 +22,7 @@ bool sandboxGameInit(sandboxgame_t *game) {
assetManagerStart(&game->manager);
pixel_t *data = (pixel_t *)assetRawLoad("out/test.texture");
textureInit(&game->texture, 4360, 1920, (pixel_t *)data);
textureInit(&game->texture, 4360/2, 1920/2, (pixel_t *)data);
free(data);
return true;