예제 #1
0
 public override void ResetToDefaultParameters()
 {
     MeshData      = null;
     Bones         = null;
     EmissiveColor = new GrimVec3();
     CastShadow    = false;
 }
예제 #2
0
 public GrimModelMeshEntity(GrimModelMeshData meshData, GrimModelBone[] bones, GrimVec3 emissiveColor, bool castShadow)
 {
     MeshData      = meshData;
     Bones         = bones;
     EmissiveColor = emissiveColor;
     CastShadow    = castShadow;
 }
예제 #3
0
        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);
        }
예제 #4
0
 public GrimModelVertexArray(GrimModelMeshData parentMeshData, BinaryReader reader) : base()
 {
     ResetToDefaultParameters();
     ParentMeshData = parentMeshData;
     Read(reader);
 }
예제 #5
0
 public GrimModelVertexArray(GrimModelMeshData parentMeshData) : base()
 {
     ParentMeshData = parentMeshData;
 }