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


C# ByteReader.ReadI16方法代码示例

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


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

示例1: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     VersionNumber = reader.ReadI16();
     DataFlags = reader.ReadU8();
     PointSize = reader.ReadF32();
 }
开发者ID:doug8679,项目名称:libJT,代码行数:7,代码来源:PointStyleAttribute.cs

示例2: 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

示例3: ReadV8

 private void ReadV8(ByteReader reader)
 {
     VersionNumber = reader.ReadI16();
     NormalBinding = (Binding)reader.ReadByte();
     TextureCoordBinding = (Binding)reader.ReadByte();
     ColorBinding = (Binding)reader.ReadByte();
     QuantizationParameters = new QuantizationParameters(reader);
 }
开发者ID:doug8679,项目名称:libJT,代码行数:8,代码来源:VertexBasedShapeCompressedRepData.cs

示例4: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     Direction = reader.ReadDirF32();
     VersionNumber = reader.ReadI16();
     if (VersionNumber == 1) {
         CoordSystem = reader.ReadI32();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:9,代码来源:InfiniteLightAttributeElement.cs

示例5: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     Vers0DataFlags = reader.ReadU8();
     VersionNumber = reader.ReadI16();
     if (VersionNumber > 0) {
         Vers1DataFlags = reader.ReadU8();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:9,代码来源:DrawStyleAttributeElement.cs

示例6: 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

示例7: 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

示例8: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     Position = reader.ReadHCoordF32();
     ConstantAttenuation = reader.ReadF32();
     LinearAttenuation = reader.ReadF32();
     QuadraticAttenuation = reader.ReadF32();
     SpreadAngle = reader.ReadF32();
     SpotDirection = reader.ReadDirF32();
     SpotIntensity = reader.ReadI32();
     VersionNumber = reader.ReadI16();
     if ( VersionNumber == 1 ) {
         CoordSystem = reader.ReadI32();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:15,代码来源:PointLightAttributeElement.cs

示例9: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     Year = reader.ReadI16();
     Month = reader.ReadI16();
     Day = reader.ReadI16();
     Hour = reader.ReadI16();
     Minute = reader.ReadI16();
     Second = reader.ReadI16();
 }
开发者ID:doug8679,项目名称:libJT,代码行数:10,代码来源:DatePropertyAtom.cs

示例10: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     VersionNumber = reader.ReadI16();
 }
开发者ID:doug8679,项目名称:libJT,代码行数:5,代码来源:PolygonSetShapeLodElement.cs

示例11: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     VersionNumber = reader.ReadI16();
     UntransformedBoundingBox = reader.ReadBBoxF32();
 }
开发者ID:doug8679,项目名称:libJT,代码行数:5,代码来源:PrimitiveSetShapeElement.cs

示例12: ReadV8

        protected override void ReadV8(ByteReader reader)
        {
            //Entities = new List<PmiEntity>();
            VersionNumber = reader.ReadI16();
            _reserved = reader.ReadI16();

            //ReadDimensionsV8(reader);
        }
开发者ID:doug8679,项目名称:libJT,代码行数:8,代码来源:Element.cs

示例13: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     VersionNumber = reader.ReadI16();
     if (VersionNumber == 1) {
         ShaderLanguage = (ShaderLanguage)reader.ReadI32();
         InlineSourceFlag = reader.ReadU32();
         if (InlineSourceFlag == 1) {
             SourceCode = reader.ReadMbString();
         } else {
             SourceCodeLoc = reader.ReadMbString();
         }
         ShaderParamCount = reader.ReadI32();
         for (int i = 0; i < ShaderParamCount; i++) {
             var p = new ShaderParameter();
             p.ReadV8(reader);
             Parameters.Add(p);
         }
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:20,代码来源:BaseShaderAttribute.cs

示例14: ReadV8

 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     TextureCoordBinging = reader.ReadI32();
     ColorBinding = reader.ReadI32();
     QuantizationParameters = new PrimitiveSetQuantizationParameters(reader);
     VersionNumber = reader.ReadI16();
     if (VersionNumber == 1) {
         TextureCoordGenType = reader.ReadI32();
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:11,代码来源:PrimitiveSetShapeNodeElement.cs

示例15: ReadV8

 private void ReadV8(ByteReader reader)
 {
     VersionNumber = reader.ReadI16();
     NodePropertyTableCount = reader.ReadI32();
     for (int i = 0; i < NodePropertyTableCount; i++) {
         var noid = reader.ReadI32();
         var keyId = reader.ReadI32();
         while (keyId != 0) {
             var valueId = reader.ReadI32();
             List<NodePropertyTableEntry> entries;
             if (Tables.TryGetValue(noid, out entries)) {
                 entries.Add(new NodePropertyTableEntry(keyId, valueId));
             } else {
                 entries = new List<NodePropertyTableEntry> {new NodePropertyTableEntry(keyId, valueId)};
                 Tables.Add(noid, entries);
             }
             keyId = reader.ReadI32();
         }
     }
 }
开发者ID:doug8679,项目名称:libJT,代码行数:20,代码来源:BasePropertyAtom.cs


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