コード例 #1
0
        public void DisposeTex(ISrvBindable texture)
        {
            MyFileTexture texInternal = texture as MyFileTexture;

            Debug.Assert(texInternal != null);
            DisposeTex(texInternal);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
            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);
            }
コード例 #4
0
 public void DisposeTex(MyFileTexture texture)
 {
     DisposeTex(texture.Name);
 }
コード例 #5
0
 public void Load(MyFileTexture tex)
 {
     Debug.Assert(m_textures.ContainsKey(tex.Name));
     LoadInternal(tex.Name);
 }
コード例 #6
0
            internal static bool IsAssetTextureFilter(IFileTexture texture)
            {
                MyFileTexture textureInternal = (MyFileTexture)texture;

                return(textureInternal.TextureType != MyFileTextureEnum.SYSTEM);
            }
コード例 #7
0
 public void DisposeTex(MyFileTexture texture)
 {
     DisposeTex(texture.Name);
 }
コード例 #8
0
 public void Load(MyFileTexture tex)
 {
     Debug.Assert(m_textures.ContainsKey(tex.Name));
     LoadInternal(tex.Name);
 }