Added VertexMapper::Unmap
Former-commit-id: b4210cfd864a527fb63ac0b1976acf2c3c198274
This commit is contained in:
parent
16cec38f9c
commit
6fb221b479
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue