public override void ResetToDefaultParameters() { MeshData = null; Bones = null; EmissiveColor = new GrimVec3(); CastShadow = false; }
public GrimModelMeshEntity(GrimModelMeshData meshData, GrimModelBone[] bones, GrimVec3 emissiveColor, bool castShadow) { MeshData = meshData; Bones = bones; EmissiveColor = emissiveColor; CastShadow = castShadow; }
protected override void DoRead(System.IO.BinaryReader reader) { MeshData = new GrimModelMeshData(reader); int NumBones = reader.ReadInt32(); Bones = new GrimModelBone[NumBones]; for (int i = 0; i < NumBones; i++) { Bones[i] = new GrimModelBone(reader); } EmissiveColor = new GrimVec3(reader); CastShadow = (reader.ReadByte() > 0); }
public GrimModelVertexArray(GrimModelMeshData parentMeshData, BinaryReader reader) : base() { ResetToDefaultParameters(); ParentMeshData = parentMeshData; Read(reader); }
public GrimModelVertexArray(GrimModelMeshData parentMeshData) : base() { ParentMeshData = parentMeshData; }