Ejemplo n.º 1
0
        public static ColorValue UnpackColor(PixelFormat format, IntPtr source)
        {
            float r = 0, g = 0, b = 0, a = 1;

            OgrePixelUtil.unpackColour(out r, out g, out b, out a, format, source);
            return(new ColorValue(r, g, b, a));
        }
Ejemplo n.º 2
0
 public static bool IsDepth(PixelFormat format)
 {
     return(OgrePixelUtil.isDepth(format));
 }
Ejemplo n.º 3
0
 public static bool IsCompressed(PixelFormat format)
 {
     return(OgrePixelUtil.isCompressed(format));
 }
Ejemplo n.º 4
0
 public static bool IsFloatingPoint(PixelFormat format)
 {
     return(OgrePixelUtil.isFloatingPoint(format));
 }
Ejemplo n.º 5
0
 public static bool HasAlpha(PixelFormat format)
 {
     return(OgrePixelUtil.hasAlpha(format));
 }
Ejemplo n.º 6
0
 public static int GetNumElemBytes(PixelFormat format)
 {
     return(OgrePixelUtil.getNumElemBytes(format));
 }
Ejemplo n.º 7
0
 public static int GetMemorySize(int width, int height, int depth, PixelFormat format)
 {
     return(OgrePixelUtil.getMemorySize(width, height, depth, format));
 }