public void DisposeTex(ISrvBindable texture) { MyFileTexture texInternal = texture as MyFileTexture; Debug.Assert(texInternal != null); DisposeTex(texInternal); }
private void LoadInternal(string name, bool alterRequested = true) { if (m_loadedTextures.Contains(name)) { return; } MyFileTexture tex = m_textures[name]; tex.Load(); if (alterRequested) { m_requestedTextures.Remove(name); } m_loadedTextures.Add(name); }
internal static bool IsQualityDependantFilter(IFileTexture texture) { MyFileTexture textureInternal = (MyFileTexture)texture; MyFileTextureEnum type = textureInternal.TextureType; if (type == MyFileTextureEnum.SYSTEM) { return(false); } if (type == MyFileTextureEnum.GUI) { return(false); } if (type == MyFileTextureEnum.GPUPARTICLES) { return(false); } return(true); }
public void DisposeTex(MyFileTexture texture) { DisposeTex(texture.Name); }
public void Load(MyFileTexture tex) { Debug.Assert(m_textures.ContainsKey(tex.Name)); LoadInternal(tex.Name); }
internal static bool IsAssetTextureFilter(IFileTexture texture) { MyFileTexture textureInternal = (MyFileTexture)texture; return(textureInternal.TextureType != MyFileTextureEnum.SYSTEM); }