Exemplo n.º 1
0
        public static PvrTexture Create(byte[] data, uint width, uint height, uint depth, PixelFormat format, ChannelType channelType, ColorSpace colorSpace)
        {
            var attributes = new PvrCreateParams
            {
                pixelFormat     = format,
                width           = width,
                height          = height,
                depth           = depth,
                numMipMaps      = 1,
                numArrayMembers = 1,
                numFaces        = 1,
                colorSpace      = colorSpace,
                channelType     = channelType,
                preMultiplied   = false
            };
            var header = new PvrHeader(attributes);

            return(new PvrTexture(header, data));
        }
Exemplo n.º 2
0
 private static extern IntPtr PVRTexLib_CreateTextureHeader(PvrCreateParams attributes);
Exemplo n.º 3
0
 public PvrHeader(PvrCreateParams parameters)
 {
     Validate();
     _pointer = PVRTexLib_CreateTextureHeader(parameters);
 }