support for 512x512 textures

This commit is contained in:
h4570
2022-07-30 15:03:46 +02:00
parent b7b32fb35a
commit ff2967c7e5
5 changed files with 30 additions and 9 deletions
@@ -24,18 +24,20 @@ Texture::Texture(TextureBuilderData* t_data) {
name = t_data->name;
TYRA_ASSERT(t_data->width <= 256 && t_data->height <= 256,
"Tyra supports only 256x256 textures max!");
TYRA_ASSERT(t_data->width <= 512 && t_data->height <= 512,
"Tyra supports only 512x512 textures max!");
TYRA_ASSERT(t_data->width == 8 || t_data->width == 16 ||
t_data->width == 32 || t_data->width == 64 ||
t_data->width == 128 || t_data->width == 256,
"Texture width/height should be 8/16/32/64/128/256!");
t_data->width == 128 || t_data->width == 256 ||
t_data->width == 512,
"Texture width/height should be 8/16/32/64/128/256/512!");
TYRA_ASSERT(t_data->height == 8 || t_data->height == 16 ||
t_data->height == 32 || t_data->height == 64 ||
t_data->height == 128 || t_data->height == 256,
"Texture width/height should be 8/16/32/64/128/256!");
t_data->height == 128 || t_data->height == 256 ||
t_data->height == 512,
"Texture width/height should be 8/16/32/64/128/256/512!");
core = new TextureData(t_data->data, t_data->bpp, t_data->gsComponents,
t_data->width, t_data->height);