AddDisposable
Introduction
When should this be used?
Texture2D texture = FlatRedBallServices.Load<Texture2D>("fileName.png", "ContentManagerName);Code Example
using FlatRedBall;
using Microsoft.Xna.Framework.Graphics;string fileName = "redball.bmp";
Texture2D texture2D = Texture2D.FromFile(FlatRedBallServices.GraphicsDevice, "redball.bmp");
string contentManagerName = "SomeContentManager";
FlatRedBallServices.AddDisposable(fileName, texture2D, contentManagerName);Last updated
Was this helpful?