Example #1
0
        public static string GetTextureAutoName(int width, int height, TextureFormat format, TextureDimension dim = TextureDimension.None, string name = "", bool mips = false, int depth = 0)
        {
            string temp;

            if (depth == 0)
            {
                temp = string.Format("{0}x{1}{2}_{3}", width, height, mips ? "_Mips" : "", format);
            }
            else
            {
                temp = string.Format("{0}x{1}x{2}{3}_{4}", width, height, depth, mips ? "_Mips" : "", format);
            }
            temp = String.Format("{0}_{1}_{2}", name == "" ? "Texture" : name, (dim == TextureDimension.None) ? "" : dim.ToString(), temp);

            return(temp);
        }
Example #2
0
        public static string GetTextureAutoName(int width, int height, TextureFormat format, TextureDimension dim = TextureDimension.None, string name = "", bool mips = false, int depth = 0, bool bindMSTexture = false)
        {
            string str;

            if (depth == 0)
            {
                str = string.Format("{0}x{1}_{2}{3}", width, height, format, mips ? "_Mips" : "");
            }
            else
            {
                str = string.Format("{0}x{1}x{2}_{3}{4}", width, height, depth, format, mips ? "_Mips" : "");
            }
            str = string.Format("{0}_{1}_{2}", name == "" ? "Texture" : name, (dim == TextureDimension.None)? "" : dim.ToString(), str);

            if (bindMSTexture)
            {
                str += "_bindMsTexture";
            }
            return(str);
        }