예제 #1
0
 public QuantizationParameters(ByteReader reader)
 {
     BitsPerVertex = reader.ReadU8();
     NormalBitsFactor = reader.ReadU8();
     BitsPerTextureCoord = reader.ReadU8();
     BitsPerColor = reader.ReadU8();
 }
예제 #2
0
 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     Vers0DataFlags = reader.ReadU8();
     VersionNumber = reader.ReadI16();
     if (VersionNumber > 0) {
         Vers1DataFlags = reader.ReadU8();
     }
 }
예제 #3
0
 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8( reader );
     VersionNumber = reader.ReadI16();
     DataFlags = reader.ReadU8();
     PointSize = reader.ReadF32();
 }
예제 #4
0
 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     DataFlags = reader.ReadU8();
     LineWidth = reader.ReadF32();
 }
 public PrimitiveSetQuantizationParameters(ByteReader reader)
 {
     BitsPerVertex = reader.ReadU8();
     BitsPerColor = reader.ReadU8();
 }
예제 #6
0
 private void ReadV8(ByteReader reader)
 {
     CODEC = (CODEC)reader.ReadU8();
     switch (CODEC) {
         case CODEC.Arithmetic:
         case CODEC.Huffman:
             ProbabilityContexts = new Int32ProbabilityContexts();
             OutOfBandValueCount = reader.ReadI32();
             if (OutOfBandValueCount > 0) {
                 OutOfBandData = new Int32CompressedDataPacket();
                 OutOfBandData.ReadV8(reader);
             }
             break;
     }
     if (CODEC != CODEC.Null) {
         CodeTextLength = reader.ReadI32();
         ValueElementCount = reader.ReadI32();
     }
 }