Refactored TriangleIterator/VertexMapper
Former-commit-id: b8d4fc79142b36519ebe1879276415fe30970d3e
This commit is contained in:
@@ -27,12 +27,12 @@ class NAZARA_API NzTriangleIterator
|
||||
NzVector3f GetNormal(unsigned int i) const;
|
||||
NzVector3f GetPosition(unsigned int i) const;
|
||||
NzVector3f GetTangent(unsigned int i) const;
|
||||
NzVector2f GetTexCoords(unsigned int i) const;
|
||||
NzVector2f GetTexCoord(unsigned int i) const;
|
||||
|
||||
void SetNormal(unsigned int i, const NzVector3f& normal);
|
||||
void SetPosition(unsigned int i, const NzVector3f& position);
|
||||
void SetTangent(unsigned int i, const NzVector3f& tangent);
|
||||
void SetTexCoords(unsigned int i, const NzVector2f& texCoords);
|
||||
void SetTexCoord(unsigned int i, const NzVector2f& texCoords);
|
||||
|
||||
void Unmap();
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
#include <Nazara/Utility/BufferMapper.hpp>
|
||||
#include <Nazara/Utility/Enums.hpp>
|
||||
#include <Nazara/Utility/Mesh.hpp>
|
||||
|
||||
class NzSubMesh;
|
||||
|
||||
class NzVertexMapperImpl;
|
||||
|
||||
class NAZARA_API NzVertexMapper
|
||||
{
|
||||
public:
|
||||
@@ -25,18 +25,20 @@ class NAZARA_API NzVertexMapper
|
||||
NzVector3f GetNormal(unsigned int i) const;
|
||||
NzVector3f GetPosition(unsigned int i) const;
|
||||
NzVector3f GetTangent(unsigned int i) const;
|
||||
NzVector2f GetTexCoords(unsigned int i) const;
|
||||
NzVector2f GetTexCoord(unsigned int i) const;
|
||||
unsigned int GetVertexCount();
|
||||
|
||||
void SetNormal(unsigned int i, const NzVector3f& normal);
|
||||
void SetPosition(unsigned int i, const NzVector3f& position);
|
||||
void SetTangent(unsigned int i, const NzVector3f& tangent);
|
||||
void SetTexCoords(unsigned int i, const NzVector2f& texCoords);
|
||||
void SetTexCoord(unsigned int i, const NzVector2f& texCoord);
|
||||
|
||||
void Unmap();
|
||||
|
||||
private:
|
||||
NzVertexMapperImpl* m_impl;
|
||||
NzBufferMapper<NzVertexBuffer> m_mapper;
|
||||
NzMeshVertex* m_vertices;
|
||||
unsigned int m_vertexCount;
|
||||
};
|
||||
|
||||
#endif // NAZARA_VERTEXMAPPER_HPP
|
||||
|
||||
Reference in New Issue
Block a user