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


C# EndianBinaryReader.ReadFx32方法代码示例

本文整理汇总了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);
 }
开发者ID:Ermelber,项目名称:EveryFileExplorer,代码行数:21,代码来源:STAG.cs

示例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();
 }
开发者ID:Ermelber,项目名称:EveryFileExplorer,代码行数:25,代码来源:MDL0.cs

示例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);
                        }
                    }
开发者ID:Ermelber,项目名称:EveryFileExplorer,代码行数:39,代码来源:MDL0.cs

示例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();
         }
     }
 }
开发者ID:Ermelber,项目名称:EveryFileExplorer,代码行数:19,代码来源:MDL0.cs

示例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();
                        }
                    }
开发者ID:Ermelber,项目名称:EveryFileExplorer,代码行数:40,代码来源:MDL0.cs


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