add vertex type to MeshPart
parent
597e0b59f4
commit
3c1ff8b932
|
@ -7,11 +7,11 @@ namespace Smuggler
|
||||||
{
|
{
|
||||||
public IndexBuffer IndexBuffer { get; }
|
public IndexBuffer IndexBuffer { get; }
|
||||||
public VertexBuffer VertexBuffer { 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 Triangle[] Triangles { get; }
|
||||||
public BasicEffect Effect { 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;
|
VertexBuffer = vertexBuffer;
|
||||||
IndexBuffer = indexBuffer;
|
IndexBuffer = indexBuffer;
|
||||||
|
|
Loading…
Reference in New Issue