示例#1
0
        public override Mesh Clone()
        {
            BodyMesh cloneBodyMesh = new BodyMesh();

            cloneBodyMesh.IsNull       = IsNull;
            cloneBodyMesh.IsDefault    = IsDefault;
            cloneBodyMesh.IndexBuffer  = IndexBuffer;
            cloneBodyMesh.Format       = Format;
            cloneBodyMesh.VertexBuffer = VertexBuffer;
            cloneBodyMesh.Stride       = Stride;

            cloneBodyMesh.MeshType = MeshType;

            return(cloneBodyMesh);
        }
示例#2
0
        public override Mesh Clone()
        {
            BodyMesh cloneBodyMesh = new BodyMesh(MeshType);

            cloneBodyMesh.IsNull       = IsNull;
            cloneBodyMesh.IsDefault    = IsDefault;
            cloneBodyMesh.IndexBuffer  = IndexBuffer;
            cloneBodyMesh.Format       = Format;
            cloneBodyMesh.VertexBuffer = VertexBuffer;
            cloneBodyMesh.Stride       = Stride;

            cloneBodyMesh.TanTexture = TanTexture;
            foreach (SkinTexture aSkinTexture in SkinTextures)
            {
                cloneBodyMesh.SkinTextures.Add(aSkinTexture.Clone());
            }

            return(cloneBodyMesh);
        }