本文整理汇总了C#中EndianBinaryReader.ReadFx32方法的典型用法代码示例。如果您正苦于以下问题:C# EndianBinaryReader.ReadFx32方法的具体用法?C# EndianBinaryReader.ReadFx32怎么用?C# EndianBinaryReader.ReadFx32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EndianBinaryReader
的用法示例。
在下文中一共展示了EndianBinaryReader.ReadFx32方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: STAG
public STAG(EndianBinaryReader er)
{
Signature = er.ReadString(Encoding.ASCII, 4);
if (Signature != "STAG") throw new SignatureNotCorrectException(Signature, "STAG", er.BaseStream.Position - 4);
Unknown1 = er.ReadUInt16();
NrLaps = er.ReadInt16();
Unknown2 = er.ReadByte();
FogEnabled = er.ReadByte() == 1;
FogTableGenMode = er.ReadByte();
FogSlope = er.ReadByte();
UnknownData1 = er.ReadBytes(0x8);
FogDensity = er.ReadFx32();
FogColor = Color.FromArgb((int)GFXUtil.ConvertColorFormat(er.ReadUInt16(), ColorFormat.XBGR1555, ColorFormat.ARGB8888));
FogAlpha = er.ReadUInt16();
KclColor1 = Color.FromArgb((int)GFXUtil.ConvertColorFormat(er.ReadUInt16(), ColorFormat.XBGR1555, ColorFormat.ARGB8888));
KclColor2 = Color.FromArgb((int)GFXUtil.ConvertColorFormat(er.ReadUInt16(), ColorFormat.XBGR1555, ColorFormat.ARGB8888));
KclColor3 = Color.FromArgb((int)GFXUtil.ConvertColorFormat(er.ReadUInt16(), ColorFormat.XBGR1555, ColorFormat.ARGB8888));
KclColor4 = Color.FromArgb((int)GFXUtil.ConvertColorFormat(er.ReadUInt16(), ColorFormat.XBGR1555, ColorFormat.ARGB8888));
FrustumFar = er.ReadFx32();
UnknownData2 = er.ReadBytes(0x4);
}
示例2: ModelInfo
public ModelInfo(EndianBinaryReader er)
{
sbcType = er.ReadByte();
scalingRule = er.ReadByte();
texMtxMode = er.ReadByte();
numNode = er.ReadByte();
numMat = er.ReadByte();
numShp = er.ReadByte();
firstUnusedMtxStackID = er.ReadByte();
er.ReadByte();//PADDING(1 byte);
posScale = er.ReadFx32();
invPosScale = er.ReadFx32();
numVertex = er.ReadUInt16();
numPolygon = er.ReadUInt16();
numTriangle = er.ReadUInt16();
numQuad = er.ReadUInt16();
boxX = er.ReadFx16();
boxY = er.ReadFx16();
boxZ = er.ReadFx16();
boxW = er.ReadFx16();
boxH = er.ReadFx16();
boxD = er.ReadFx16();
boxPosScale = er.ReadFx32();
boxInvPosScale = er.ReadFx32();
}
示例3: Material
public Material(EndianBinaryReader er)
{
itemTag = er.ReadUInt16();
size = er.ReadUInt16();
diffAmb = er.ReadUInt32();
specEmi = er.ReadUInt32();
polyAttr = er.ReadUInt32();
polyAttrMask = er.ReadUInt32();
texImageParam = er.ReadUInt32();
texImageParamMask = er.ReadUInt32();
texPlttBase = er.ReadUInt16();
flag = (NNS_G3D_MATFLAG)er.ReadUInt16();
origWidth = er.ReadUInt16();
origHeight = er.ReadUInt16();
magW = er.ReadFx32();
magH = er.ReadFx32();
if ((flag & NNS_G3D_MATFLAG.NNS_G3D_MATFLAG_TEXMTX_SCALEONE) == 0)
{
scaleS = er.ReadFx32();
scaleT = er.ReadFx32();
}
if ((flag & NNS_G3D_MATFLAG.NNS_G3D_MATFLAG_TEXMTX_ROTZERO) == 0)
{
rotSin = er.ReadFx16();
rotCos = er.ReadFx16();
}
if ((flag & NNS_G3D_MATFLAG.NNS_G3D_MATFLAG_TEXMTX_TRANSZERO) == 0)
{
transS = er.ReadFx32();
transT = er.ReadFx32();
}
if ((flag & NNS_G3D_MATFLAG.NNS_G3D_MATFLAG_EFFECTMTX) == NNS_G3D_MATFLAG.NNS_G3D_MATFLAG_EFFECTMTX)
{
effectMtx = er.ReadFx32s(16);
}
}
示例4: envelope
public envelope(EndianBinaryReader er)
{
invM = Matrix44.Identity;
for (int y = 0; y < 4; y++)
{
for (int x = 0; x < 3; x++)
{
invM[x, y] = er.ReadFx32();
}
}
invN = Matrix44.Identity;
for (int y = 0; y < 3; y++)
{
for (int x = 0; x < 3; x++)
{
invN[x, y] = er.ReadFx32();
}
}
}
示例5: NodeData
public NodeData(EndianBinaryReader er)
{
flag = er.ReadUInt16();
_00 = er.ReadInt16();
if ((flag & NNS_G3D_SRTFLAG_TRANS_ZERO) == 0)
{
Tx = er.ReadFx32();
Ty = er.ReadFx32();
Tz = er.ReadFx32();
}
if ((flag & NNS_G3D_SRTFLAG_ROT_ZERO) == 0 &&
(flag & NNS_G3D_SRTFLAG_PIVOT_EXIST) == 0)
{
_01 = er.ReadFx16();
_02 = er.ReadFx16();
_10 = er.ReadFx16();
_11 = er.ReadFx16();
_12 = er.ReadFx16();
_20 = er.ReadFx16();
_21 = er.ReadFx16();
_22 = er.ReadFx16();
}
if ((flag & NNS_G3D_SRTFLAG_ROT_ZERO) == 0 &&
(flag & NNS_G3D_SRTFLAG_PIVOT_EXIST) != 0)
{
A = er.ReadFx16();
B = er.ReadFx16();
}
if ((flag & NNS_G3D_SRTFLAG_SCALE_ONE) == 0)
{
Sx = er.ReadFx32();
Sy = er.ReadFx32();
Sz = er.ReadFx32();
InvSx = er.ReadFx32();
InvSy = er.ReadFx32();
InvSz = er.ReadFx32();
}
}