Пример #1
0
        public Dictionary <string, SFTex.Texture> glTexByName = new Dictionary <string, SFTex.Texture>(); //Rendering

        public void RefreshGlTexturesByName()
        {
            glTexByName.Clear();

            foreach (FTEX tex in FTEXtextures.Values)
            {
                SFTex.Texture2D texture2d = FTEX.CreateTexture2D(tex.texture);
                glTexByName.Add(tex.Text, texture2d);

                tex.texture.display = texture2d.Id;
                tex.display         = tex.texture.display;
            }
        }