public void CopyTo(asStream stream) { stream.Put(R); stream.Put(G); stream.Put(B); stream.Put(A); }
public override void Save(asStream stream) { stream.PutString(Name, 32); stream.Put(Flags); stream.Put(Unknown1); stream.Put(Unknown2); // alignment stream.Put((byte)0); }
public override void Save(asStream stream) { stream.PutString(Name, 32); Emission.CopyTo(stream); Ambient.CopyTo(stream); Diffuse.CopyTo(stream); Specular.CopyTo(stream); stream.Put(Shininess); stream.Put(Reserved); }
public override void Save(asStream stream) { var strLen = (byte)(Name.Length + 1); stream.Put(strLen); stream.PutString(Name, strLen); var vertsCount = (Vertices != null) ? Vertices.Length : 0; var patchesCount = (Patches != null) ? Patches.Length : 0; stream.Put(vertsCount); stream.Put(patchesCount); stream.Put(Vertices); stream.Put(Patches); }
public override void Save(asStream stream) { stream.Put(Vertex); var norms = new[] { Normals.X, Normals.Y, Normals.Z }; stream.Put(norms, 3); stream.Put(SMap); stream.Put(TMap); stream.Put(Color); }
public override void Save(asStream stream) { stream.PutString(Name, 32); stream.Put(Friction); stream.Put(Elasticity); stream.Put(Drag); stream.Put(BumpHeight); stream.Put(BumpWidth); stream.Put(SinkDepth); stream.Put(PtxRate); stream.Put(Type); stream.Put(Sound); Velocity.CopyTo(stream); PtxColor.CopyTo(stream); }
public override void Save(asStream stream) { stream.Put(Resolution); stream.Put(Stride); stream.Put(Unknown); stream.Put(Flags); stream.Put(Material); stream.Put(Texture); stream.Put(Physics); foreach (var vertex in Vertices) { vertex.Save(stream); } stream.PutString(UserData); }
public void CopyTo(asStream stream) { stream.Put(X); stream.Put(Y); stream.Put(Z); }