Пример #1
0
        // Token: 0x060003F1 RID: 1009 RVA: 0x00034DC0 File Offset: 0x00032FC0
        public static void GetOriginalWidthAndHeight(Texture texture, TextureImporter importer, out int width, out int height)
        {
            width  = 0;
            height = 0;
            Cubemap cubemap = texture as Cubemap;

            if (null != cubemap)
            {
                width  = TextureUtil2.GetGLWidth(texture);
                height = TextureUtil2.GetGLHeight(texture);
                return;
            }
            if (null != importer)
            {
                TextureImporter2.GetWidthAndHeight(importer, ref width, ref height);
            }
        }
Пример #2
0
 // Token: 0x060003DE RID: 990 RVA: 0x00034A0C File Offset: 0x00032C0C
 public static string GetWrapModeString(TextureImporterShape shape, TextureWrapMode u, TextureWrapMode v, TextureWrapMode w)
 {
     if ((int)shape == 2)
     {
         if (u == v && v == w)
         {
             return(TextureUtil2.GetWrapModeString(u));
         }
         return(string.Format("Per-axis ({0}|{1}|{2})", TextureUtil2.GetWrapModeString(u), TextureUtil2.GetWrapModeString(v), TextureUtil2.GetWrapModeString(w)));
     }
     else
     {
         if (u == v)
         {
             return(TextureUtil2.GetWrapModeString(u));
         }
         return(string.Format("Per-axis ({0}|{1})", TextureUtil2.GetWrapModeString(u), TextureUtil2.GetWrapModeString(v)));
     }
 }