[core] move Painter and dependents to new *TileID classes

This commit is contained in:
Konstantin Käfer
2016-03-08 17:18:57 +01:00
parent 5b640fb446
commit dde59eaf76
30 changed files with 138 additions and 670 deletions

View File

@@ -59,7 +59,8 @@ void Painter::renderBackground(const BackgroundLayer& layer) {
for (auto &id: tileIDs) {
mat4 vtxMatrix;
state.matrixFor(vtxMatrix, id, id.z);
const UnwrappedTileID tileID(id.z, id.x, id.y);
state.matrixFor(vtxMatrix, tileID);
matrix::multiply(vtxMatrix, projMatrix, vtxMatrix);
if (isPatterned) {