(VertexMapper) Updated interface

Added access parameter
Removed useless GetVertexCount method


Former-commit-id: 670d16ed9668eb5df476a592929ed9c364b1f11a
This commit is contained in:
Lynix
2015-01-26 17:11:00 +01:00
parent ab538e0e2d
commit 5e3fdbca89
4 changed files with 11 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ NzSubMesh::~NzSubMesh() = default;
void NzSubMesh::GenerateNormals()
{
NzVertexMapper mapper(this);
unsigned int vertexCount = mapper.GetVertexCount();
unsigned int vertexCount = GetVertexCount();
NzSparsePtr<NzVector3f> normals = mapper.GetComponentPtr<NzVector3f>(nzVertexComponent_Normal);
NzSparsePtr<NzVector3f> positions = mapper.GetComponentPtr<NzVector3f>(nzVertexComponent_Position);
@@ -56,7 +56,7 @@ void NzSubMesh::GenerateNormals()
void NzSubMesh::GenerateNormalsAndTangents()
{
NzVertexMapper mapper(this);
unsigned int vertexCount = mapper.GetVertexCount();
unsigned int vertexCount = GetVertexCount();
NzSparsePtr<NzVector3f> normals = mapper.GetComponentPtr<NzVector3f>(nzVertexComponent_Normal);
NzSparsePtr<NzVector3f> positions = mapper.GetComponentPtr<NzVector3f>(nzVertexComponent_Position);