Fixed whatever was wrong with my shader

This commit is contained in:
2022-12-05 19:27:32 -08:00
parent 8059158bae
commit 5b6f9124b5
21 changed files with 284 additions and 61 deletions

View File

@ -43,6 +43,20 @@ void TilesetAsset::updateAsync() {
this->state = 0x04;
assertTrue(this->tileset.rows > 0);
strCurrent = strNext+1;
strNext = strchr(strCurrent, '|');
*strNext = '\0';
this->tileset.divX = atoi(strCurrent);
this->state = 0x05;
assertTrue(this->tileset.rows > 0);
strCurrent = strNext+1;
strNext = strchr(strCurrent, '|');
*strNext = '\0';
this->tileset.divY = atoi(strCurrent);
this->state = 0x06;
assertTrue(this->tileset.rows > 0);
// Begin reading tiles.
int32_t done = 0;
int32_t count = this->tileset.columns * this->tileset.rows;
@ -79,7 +93,7 @@ void TilesetAsset::updateAsync() {
done++;
}
this->state = 0x05;
this->state = 0x07;
this->loaded = true;
this->eventLoaded.invoke();