add vertex type to MeshPart

main
Evan Hemsley 2020-07-28 02:44:27 -07:00
parent 597e0b59f4
commit 3c1ff8b932
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@ namespace Smuggler
{
public IndexBuffer IndexBuffer { get; }
public VertexBuffer VertexBuffer { get; }
public Vector3[] Vertices { get; }
public VertexPositionNormalTexture[] Vertices { get; } /* should we parameterize this by vertex type? */
public Triangle[] Triangles { get; }
public BasicEffect Effect { get; }
public MeshPart(VertexBuffer vertexBuffer, IndexBuffer indexBuffer, Vector3[] vertices, Triangle[] triangles, BasicEffect effect)
public MeshPart(VertexBuffer vertexBuffer, IndexBuffer indexBuffer, VertexPositionNormalTexture[] vertices, Triangle[] triangles, BasicEffect effect)
{
VertexBuffer = vertexBuffer;
IndexBuffer = indexBuffer;