public void Free() { if (_GLTexID != -1) { //only free root textures if (!isSubTexture) GL.DeleteTexture(_GLTexID); } }
public void Remove(JTexture textureToRemove) { textureList.Remove(textureToRemove); textureToRemove.Free(); }