started working with MRT
This commit is contained in:
@@ -279,3 +279,13 @@ TSE::Vector2 TSE::TileMap::ChunkToLocalPos(const Vector2 &v, const TileMapChunk
|
||||
{
|
||||
return v + chunk.pos * chunkSize;
|
||||
}
|
||||
|
||||
TSE::Vector2 TSE::TileMap::RealPosToTileMapPos(const Vector2 &v)
|
||||
{
|
||||
return v + nextLine * v.y;
|
||||
}
|
||||
|
||||
TSE::Vector2 TSE::TileMap::TileMapToRealPos(const Vector2 &v)
|
||||
{
|
||||
return v - nextLine * v.y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user