public void Dispose() { if (lineVb <= 0) { return; } Graphics.DeleteDynamicVb(ref vb); Graphics.DeleteDynamicVb(ref lineVb); }
public void Dispose() { OnNewMap(null, null); game.MapEvents.OnNewMap -= OnNewMap; if (lineVb > 0) { Graphics.DeleteDynamicVb(vb); Graphics.DeleteDynamicVb(lineVb); } }
public void Dispose() { game.Graphics.DeleteTexture(ref RainTexId); game.Graphics.DeleteTexture(ref SnowTexId); graphics.DeleteDynamicVb(weatherVb); game.Events.TextureChanged -= TextureChanged; }
public void Dispose() { game.Events.TextureChanged -= TextureChanged; for (int i = 0; i < Models.Count; i++) { Models[i].Instance.Dispose(); } for (int i = 0; i < Textures.Count; i++) { CachedTexture tex = Textures[i]; api.DeleteTexture(ref tex.TexID); Textures[i] = tex; } api.DeleteDynamicVb(ref vb); }
public void Dispose() { foreach (var entry in cache) { entry.Value.Dispose(); } api.DeleteDynamicVb(vb); api.DeleteTexture(ref ChickenTexId); api.DeleteTexture(ref CreeperTexId); api.DeleteTexture(ref PigTexId); api.DeleteTexture(ref SheepTexId); api.DeleteTexture(ref SkeletonTexId); api.DeleteTexture(ref SpiderTexId); api.DeleteTexture(ref ZombieTexId); api.DeleteTexture(ref SheepFurTexId); api.DeleteTexture(ref HumanoidTexId); }
public void Dispose() { graphics.DeleteDynamicVb(vb); }
public void Dispose() { game.MapEvents.OnNewMap -= OnNewMap; game.MapEvents.OnNewMapLoaded -= OnNewMapLoaded; graphics.DeleteDynamicVb(weatherVb); }
public void Dispose() { api.DeleteDynamicVb(ref vb); }