/// <summary> /// stores the textures for later use /// </summary> /// <param name="tex"></param> public void StoreTexture(ITexture tex) { Debug.Assert(tex != null); if (images.HasMatchingProperties(tex)) { // can be used for later textures.Push(tex); } else { // immediately discard (incompatible image) tex.Dispose(); } }
public bool IsCompatibleWith(ITexture tex) { Debug.Assert(tex != null); return(images.HasMatchingProperties(tex)); }