Fix build

This commit is contained in:
Alex Szpakowski
2020-02-28 23:12:22 -04:00
parent 7fbb68e90e
commit bbdadcba8a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -335,6 +335,11 @@ bool Mesh::detachAttribute(const std::string &name)
return true;
}
const std::vector<Mesh::BufferAttribute> &Mesh::getAttachedAttributes() const
{
return attachedAttributes;
}
void *Mesh::mapVertexData()
{
return vertexBuffer.get() != nullptr ? vertexBuffer->map() : nullptr;
+1 -1
View File
@@ -114,7 +114,7 @@ public:
**/
void attachAttribute(const std::string &name, Buffer *buffer, const std::string &attachname, AttributeStep step = STEP_PER_VERTEX);
bool detachAttribute(const std::string &name);
const std::vector<BufferAttribute> &getAttachedAttributes();
const std::vector<BufferAttribute> &getAttachedAttributes() const;
void *mapVertexData();
void unmapVertexData(size_t modifiedoffset = 0, size_t modifiedsize = -1);