Added VertexMapper::Unmap

Former-commit-id: b4210cfd864a527fb63ac0b1976acf2c3c198274
This commit is contained in:
Lynix 2013-01-03 21:25:29 +01:00
parent 16cec38f9c
commit 6fb221b479
2 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,6 @@
#include <Nazara/Utility/Enums.hpp>
class NzSubMesh;
class NzVertexBuffer;
class NzVertexMapperImpl;
@ -34,6 +33,8 @@ class NAZARA_API NzVertexMapper
void SetTangent(unsigned int i, const NzVector3f& tangent);
void SetTexCoords(unsigned int i, const NzVector2f& texCoords);
void Unmap();
private:
NzVertexMapperImpl* m_impl;
};

View File

@ -323,3 +323,9 @@ void NzVertexMapper::SetTexCoords(unsigned int i, const NzVector2f& texCoords)
{
m_impl->SetTexCoords(i, texCoords);
}
void NzVertexMapper::Unmap()
{
delete m_impl;
m_impl = nullptr;
}