当前位置: 首页>>代码示例>>C#>>正文


C# ByteReader.ReadU32方法代码示例

本文整理汇总了C#中libJT.Utilities.ByteReader.ReadU32方法的典型用法代码示例。如果您正苦于以下问题:C# ByteReader.ReadU32方法的具体用法?C# ByteReader.ReadU32怎么用?C# ByteReader.ReadU32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在libJT.Utilities.ByteReader的用法示例。


在下文中一共展示了ByteReader.ReadU32方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Vers1ImageFormat

        public Vers1ImageFormat(ByteReader reader)
        {
            ImageTexelData = new List<byte>();
            _numBytes = reader.ReadI32();
            if ( _numBytes > 0 ) {
                PixelFormat = reader.ReadU32();
                PixelDataType = reader.ReadU32();
                Dimensionality = reader.ReadI16();
                Width = reader.ReadI32();
                Height = reader.ReadI32();
                MipmapsFlag = reader.ReadU32();
                SharedImageFlag = reader.ReadU32();

                for ( int i = 0; i < _numBytes; i++ ) {
                    ImageTexelData.Add( reader.ReadByte() );
                }

                MipmapMagnificationFilter = reader.ReadI32();
                MipmapMinificationFilter = reader.ReadI32();
                SDimenWrapMode = reader.ReadI32();
                TDimenWrapMode = reader.ReadI32();
                TextureFunctionData = reader.ReadI32();
                BlendColor = reader.ReadRGBA();
                TextureTransform = reader.ReadMx4F32();
            }
        }
开发者ID:doug8679,项目名称:libJT,代码行数:26,代码来源:TextureImage.cs

示例2: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     VersionNumber = reader.ReadI16();
     if (VersionNumber == 1) {
         EnableFlag = reader.ReadU32();
         EnvMapTextureChannel = reader.ReadI32();
         EnvMapReflectivity = reader.ReadF32();
         BumpMapTextureChannel = reader.ReadI32();
         BumpinessFactor = reader.ReadF32();
         BumpMapNormalSpace = reader.ReadU32();
         PhongShadingFlag = reader.ReadU32();
         ReservedField = reader.ReadU32();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:15,代码来源:ShaderEffectsAttribute.cs

示例3: ReadV9

 protected override void ReadV9(ByteReader reader)
 {
     VersionNumber = reader.ReadI16();
     NodeFlagsPMI = reader.ReadU32();
     var aCount = reader.ReadI32();
     for ( int i = 0; i < aCount; i++ ) {
         Attributes.Add( reader.ReadI32() );
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:9,代码来源:BaseNodeElement.cs

示例4: ReadV8

        protected override void ReadV8(ByteReader reader)
        {
            Compression = reader.ReadU32() == 2;
            CompressedLength = reader.ReadI32();
            Algorithm = reader.ReadByte();
            reader.Inflate(true, CompressedLength - 1);

            // Decompress the remainder of the header
            Length = reader.ReadI32();
            ObjectTypeID = reader.ReadGuid();
            ObjectBaseType = (ObjectBaseType) reader.ReadByte();
        }
开发者ID:doug8679,项目名称:libJT,代码行数:12,代码来源:ElementHeader.cs

示例5: ReadV10

 protected override void ReadV10(ByteReader reader)
 {
     Compression = reader.ReadU32() == 3;
     CompressedLength = reader.ReadI32();
     Algorithm = reader.ReadByte();
     base.ReadV10( reader);
 }
开发者ID:doug8679,项目名称:libJT,代码行数:7,代码来源:ElementHeader.cs

示例6: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     ObjectID = reader.ReadI32();
     StateFlags = reader.ReadByte();
     FieldInhibitFlags = reader.ReadU32();
 }
开发者ID:doug8679,项目名称:libJT,代码行数:6,代码来源:BaseAttribute.cs

示例7: ReadV8

 public void ReadV8(ByteReader reader)
 {
     ParameterName = reader.ReadMbString();
     ParameterType = (ParamType) reader.ReadU32();
     ValueClass = (ValueClass) reader.ReadU32();
     Direction = (Direction) reader.ReadU32();
     SemanticBinding = (SemanticBinding) reader.ReadU32();
     Variability = (Variability) reader.ReadU32();
     Reserved = reader.ReadU32();
     for ( int i = 0; i < 16; i++ ) {
         Value[i] = reader.ReadU32();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:13,代码来源:BaseShaderAttribute.cs

示例8: Vers2ImageFormat

        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();
        }
开发者ID:doug8679,项目名称:libJT,代码行数:31,代码来源:TextureImage.cs


注:本文中的libJT.Utilities.ByteReader.ReadU32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。