Ejemplo n.º 1
0
        public Vers2ImageFormat(ByteReader reader)
        {
            TexCoordGenMode = new int[4];
            TexCoordRefPlane = new float[4][];

            TextureType = reader.ReadI32();

            BorderMode = reader.ReadI32();
            MipmapMagnificationFilter = reader.ReadI32();
            MipmapMinificationFilter = reader.ReadI32();
            SDimenWrapMode = reader.ReadI32();
            TDimenWrapMode = reader.ReadI32();
            RDimenWrapMode = reader.ReadI32();
            BlendType = reader.ReadI32();
            InternalCompressionLevel = reader.ReadI32();
            BlendColor = reader.ReadRGBA();
            BorderColor = reader.ReadRGBA();
            TextureTransform = reader.ReadMx4F32();

            for ( int i = 0; i < 4; i++ ) {
                TexCoordGenMode[i] = reader.ReadI32();
            }
            for ( int i = 0; i < 4; i++ ) {
                TexCoordRefPlane[i] = reader.ReadPlaneF32();
            }

            TextureChannel = reader.ReadI32();
            _reserved = reader.ReadU32();
            InlineImageStorageFlag = reader.ReadU32();
            ImageCount = reader.ReadI32();
        }