本文整理汇总了C#中libJT.Utilities.ByteReader.ReadI32方法的典型用法代码示例。如果您正苦于以下问题:C# ByteReader.ReadI32方法的具体用法?C# ByteReader.ReadI32怎么用?C# ByteReader.ReadI32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libJT.Utilities.ByteReader
的用法示例。
在下文中一共展示了ByteReader.ReadI32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8( reader );
LightCount = reader.ReadI32();
for (int i = 0; i < LightCount; i++) {
Lights.Add(reader.ReadI32());
}
}
示例2: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
int children = reader.ReadI32();
for (int i = 0; i < children; i++) {
Children.Add(reader.ReadI32());
}
}
示例3: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
NormalBinding = reader.ReadI32();
TextureBinding = reader.ReadI32();
ColorBinding = reader.ReadI32();
QuantizationParameters = new QuantizationParameters(reader);
}
示例4: 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() );
}
}
示例5: 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();
}
}
示例6: 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();
}
}
示例7: 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();
}
}
示例8: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8( reader );
Direction = reader.ReadDirF32();
VersionNumber = reader.ReadI16();
if (VersionNumber == 1) {
CoordSystem = reader.ReadI32();
}
}
示例9: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
ObjectID = reader.ReadI32();
AmbientColor = reader.ReadRGBA();
DiffuseColor = reader.ReadRGBA();
SpecularColor = reader.ReadRGBA();
Brightness = reader.ReadF32();
}
示例10: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
PartitionFlags = reader.ReadI32();
FileName = reader.ReadMbString();
// Read the box either way, if the mask is set, this is a reserved field...do we ignore it?
TransformedBoundingBox = reader.ReadBBoxF32();
Area = reader.ReadF32();
MinVertexCount = reader.ReadI32();
MaxVertexCount = reader.ReadI32();
MinNodeCount= reader.ReadI32();
MaxNodeCount = reader.ReadI32();
MinPolygonCount = reader.ReadI32();
MaxPolygonCount = reader.ReadI32();
if ( ( PartitionFlags & 0x00000001 ) != 0 ) {
UnTransformedBoundingBox = reader.ReadBBoxF32();
}
}
示例11: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8( reader );
Value = reader.ReadI32();
}
示例12: ReadV8
private void ReadV8(ByteReader reader)
{
EmptyInt = reader.ReadI32();
TocOffset = reader.ReadI32();
LsgSegmentID = reader.ReadGuid();
}
示例13: ReadV9
private void ReadV9(ByteReader reader)
{
EmptyInt = reader.ReadI32();
TocOffset = reader.ReadI32();
LsgSegmentID = reader.ReadGuid();
if (EmptyInt != 0)
EmptyGuid = reader.ReadGuid();
}
示例14: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
_reservedVector = reader.ReadVecF32();
_reservedInt = reader.ReadI32();
}
示例15: ReadV9
protected override void ReadV9(ByteReader reader)
{
Compression = reader.ReadI32() == 2;
CompressedLength = reader.ReadI32();
Algorithm = reader.ReadByte();
base.ReadV9( reader);
}