本文整理汇总了C#中EndianBinaryReader.ReadVector4方法的典型用法代码示例。如果您正苦于以下问题:C# EndianBinaryReader.ReadVector4方法的具体用法?C# EndianBinaryReader.ReadVector4怎么用?C# EndianBinaryReader.ReadVector4使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EndianBinaryReader
的用法示例。
在下文中一共展示了EndianBinaryReader.ReadVector4方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StandardTextureSamplerCtr
public StandardTextureSamplerCtr(EndianBinaryReader er)
: base(er)
{
BorderColor = er.ReadVector4();
LodBias = er.ReadSingle();
}
示例2: FragmentShader
public FragmentShader(EndianBinaryReader er)
{
BufferColor = er.ReadVector4();
FragmentLighting = new FragmentLightingCtr(er);
FragmentLightingTableOffset = (UInt32)er.BaseStream.Position + er.ReadUInt32();
TextureCombiners = new TextureCombinerCtr[6];
for (int i = 0; i < 6; i++) TextureCombiners[i] = new TextureCombinerCtr(er);
AlphaTest = new AlphaTestCtr(er);
BufferCommand1 = er.ReadUInt32();
BufferCommand2 = er.ReadUInt32();
BufferCommand3 = er.ReadUInt32();
BufferCommand4 = er.ReadUInt32();
BufferCommand5 = er.ReadUInt32();
BufferCommand6 = er.ReadUInt32();
long curpos = er.BaseStream.Position;
er.BaseStream.Position = FragmentLightingTableOffset;
FragmentLightingTable = new FragmentLightingTableCtr(er);
er.BaseStream.Position = curpos;
}
示例3: MaterialColorCtr
public MaterialColorCtr(EndianBinaryReader er)
{
Emission = er.ReadVector4();
Ambient = er.ReadVector4();
Diffuse = er.ReadVector4();
Specular0 = er.ReadVector4();
Specular1 = er.ReadVector4();
Constant0 = er.ReadVector4();
Constant1 = er.ReadVector4();
Constant2 = er.ReadVector4();
Constant3 = er.ReadVector4();
Constant4 = er.ReadVector4();
Constant5 = er.ReadVector4();
EmissionU32 = er.ReadColor8();
AmbientU32 = er.ReadColor8();
DiffuseU32 = er.ReadColor8();
Specular0U32 = er.ReadColor8();
Specular1U32 = er.ReadColor8();
Constant0U32 = er.ReadColor8();
Constant1U32 = er.ReadColor8();
Constant2U32 = er.ReadColor8();
Constant3U32 = er.ReadColor8();
Constant4U32 = er.ReadColor8();
Constant5U32 = er.ReadColor8();
CommandCache = er.ReadUInt32();
}
示例4: BlendOperationCtr
public BlendOperationCtr(EndianBinaryReader er)
{
Mode = er.ReadUInt32();
BlendColor = er.ReadVector4();
Command1 = er.ReadUInt32();
Command2 = er.ReadUInt32();
Command3 = er.ReadUInt32();
Command4 = er.ReadUInt32();
Command5 = er.ReadUInt32();
Command6 = er.ReadUInt32();
}