OpenGL rendering hooked up. Better platform layer abstraction

This commit is contained in:
Matt Thorson
2020-08-16 22:00:13 -07:00
parent 5d62a86947
commit 1c084b55f9
21 changed files with 669 additions and 450 deletions

View File

@ -173,7 +173,7 @@ namespace Strawberry
for (let x < CellsX)
for (let y < CellsY)
if (this[x, y] != '0')
Draw.Rect(Rect(x, y, 1, 1) * CellSize + Offset, color);
Game.Batcher.Rect(Rect(x, y, 1, 1) * CellSize + Offset, color);
}
}
}

View File

@ -88,7 +88,7 @@ namespace Strawberry
public override void Draw()
{
DrawHitbox(.(255, 255, 255, 255));
DrawHitbox(.White);
}
}
}