Exemple #1
0
 public void EnsureTextureMaxSize(WrappedTextureMaxSize maxTextureSize)
 {
     if (maxTextureSize != WrappedTextureMaxSize.DONT_RESIZE)
     {
         TextureHelpers.EnsureTexture2DMaxSize(ref texture2D, (int)maxTextureSize);
     }
 }
Exemple #2
0
        public void SetMaxTextureSize(int size)
        {
            if (!isLoaded)
            {
                return;
            }

            for (int i = 0; i < gifTextures.Count; i++)
            {
                TextureHelpers.EnsureTexture2DMaxSize(ref gifTextures[i].m_texture2d, size);
            }
        }
Exemple #3
0
        public void SetMaxTextureSize(MaxSize size)
        {
            if (!isLoaded)
            {
                return;
            }

            if (size == MaxSize.DONT_RESIZE)
            {
                return;
            }

            int texturesCount = gifTextures.Count;

            for (int i = 0; i < texturesCount; i++)
            {
                TextureHelpers.EnsureTexture2DMaxSize(ref gifTextures[i].m_texture2d, (int)size);
            }
        }