void LoadAtlas(Bitmap bmp) { TerrainAtlas1D.Dispose(); TerrainAtlas.Dispose(); TerrainAtlas.UpdateState(BlockInfo, bmp); TerrainAtlas1D.UpdateState(TerrainAtlas); }
void LoadAtlas(Bitmap bmp, Stream data) { TerrainAtlas1D.Dispose(); TerrainAtlas.Dispose(); if (lastAtlas != null) { lastAtlas.Dispose(); } TerrainAtlas.UpdateState(BlockInfo, bmp); TerrainAtlas1D.UpdateState(TerrainAtlas); lastAtlas = data; }