Exemplo n.º 1
0
        public override void LoadContent()
        {
            Parts = new ContentMeshPart[Primitive.BaseMesh.Parts.Length];
            for (var i = 0; i < Primitive.BaseMesh.Parts.Length; ++i)
            {
                Parts[i] = new ContentMeshPart(this, Primitive.BaseMesh.Parts[i]);
            }

            Material = Engine.MaterialFactory.Get(Primitive.BaseMesh.Material.Get(Variant));

            base.LoadContent();
        }
Exemplo n.º 2
0
 public override void UnloadContent()
 {
     Parts    = null;
     Material = null;
     base.UnloadContent();
 }