public static void DrawMap(JuFramework.TileMap tileMap, int layerId, IntRect cells, Vector2f position) { var tileLayer = tileMap.tileLayers[layerId]; var tileSet = tileLayer.GetTileSet(); RebuildMesh(tileLayer, cells, position, tileSet); mapMaterial.Set("_MainTex", tileSet.texture); mapMaterial.Use(); Core.graphics.DrawMesh(meshCache); }
public static void DrawMap(JuFramework.TileMap tileMap, int layerId, Vector2f position) { var tileLayer = tileMap.tileLayers[layerId]; DrawMap(tileMap, layerId, new IntRect(0, 0, tileLayer.width, tileLayer.height), position); }
//----------------------------------------------------------------------- public static void DrawMap(JuFramework.TileMap tileMap, int layerId) { DrawMap(tileMap, layerId, Vector2f.zero); }