예제 #1
0
        public static uint GetABitMask(GtexPixelFormat gtexFormat)
        {
            switch (gtexFormat)
            {
            case GtexPixelFormat.A8R8G8B8:
                return(0xFF000000);

            default:
                return(0);
            }
        }
예제 #2
0
 public static int GetBBitMask(GtexPixelFormat gtexFormat)
 {
     if (gtexFormat == GtexPixelFormat.A8R8G8B8 || gtexFormat == GtexPixelFormat.X8R8G8B8)
     {
         return(0x000000FF);
     }
     else
     {
         return(0);
     }
 }
예제 #3
0
 public static int GetRGBBitCount(GtexPixelFormat gtexFormat)
 {
     if (gtexFormat == GtexPixelFormat.A8R8G8B8 || gtexFormat == GtexPixelFormat.X8R8G8B8)
     {
         return(0x00000020);
     }
     else
     {
         return(0);
     }
 }
예제 #4
0
        public static int GetFlags(GtexPixelFormat gtexFormat)
        {
            switch (gtexFormat)
            {
            case GtexPixelFormat.A8R8G8B8:
                return(0x00000041);

            case GtexPixelFormat.X8R8G8B8:
                return(0x00000040);

            default:
                return(0x00000004);
            }
        }
예제 #5
0
        public static int GetFormat(GtexPixelFormat gtexFormat)
        {
            switch (gtexFormat)
            {
            case GtexPixelFormat.DXT1:
                return(0x31545844);

            case GtexPixelFormat.DXT3:
                return(0x33545844);

            case GtexPixelFormat.DXT5:
                return(0x35545844);

            default:
                return(0);
            }
        }