Removed Keyframe mesh lock system (useless)

Former-commit-id: b7e661274510836cb46eb98b6b9e7135d21a4820
This commit is contained in:
Lynix
2012-12-31 11:20:14 +01:00
parent c73d10ab29
commit c65f0e9f7e
3 changed files with 5 additions and 86 deletions

View File

@@ -21,7 +21,7 @@ class NAZARA_API NzKeyframeMesh final : public NzSubMesh
NzKeyframeMesh(const NzMesh* parent);
virtual ~NzKeyframeMesh();
bool Create(NzVertexBuffer* vertexBuffer, unsigned int frameCount, bool lock = true);
bool Create(NzVertexBuffer* vertexBuffer, unsigned int frameCount);
void Destroy();
void Finish();
@@ -39,15 +39,11 @@ class NAZARA_API NzKeyframeMesh final : public NzSubMesh
bool IsAnimated() const override;
bool IsValid();
bool Lock(nzBufferAccess access) const;
void SetAABB(unsigned int frameIndex, const NzAxisAlignedBox& aabb);
void SetIndexBuffer(const NzIndexBuffer* indexBuffer);
void SetVertex(unsigned int frameIndex, unsigned int vertexIndex, const NzMeshVertex& source);
void SetTexCoords(unsigned int vertexIndex, const NzVector2f& uv);
void Unlock() const;
private:
void InterpolateImpl(unsigned int frameA, unsigned int frameB, float interpolation) const;