mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fix build
This commit is contained in:
@@ -335,6 +335,11 @@ bool Mesh::detachAttribute(const std::string &name)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::vector<Mesh::BufferAttribute> &Mesh::getAttachedAttributes() const
|
||||||
|
{
|
||||||
|
return attachedAttributes;
|
||||||
|
}
|
||||||
|
|
||||||
void *Mesh::mapVertexData()
|
void *Mesh::mapVertexData()
|
||||||
{
|
{
|
||||||
return vertexBuffer.get() != nullptr ? vertexBuffer->map() : nullptr;
|
return vertexBuffer.get() != nullptr ? vertexBuffer->map() : nullptr;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ public:
|
|||||||
**/
|
**/
|
||||||
void attachAttribute(const std::string &name, Buffer *buffer, const std::string &attachname, AttributeStep step = STEP_PER_VERTEX);
|
void attachAttribute(const std::string &name, Buffer *buffer, const std::string &attachname, AttributeStep step = STEP_PER_VERTEX);
|
||||||
bool detachAttribute(const std::string &name);
|
bool detachAttribute(const std::string &name);
|
||||||
const std::vector<BufferAttribute> &getAttachedAttributes();
|
const std::vector<BufferAttribute> &getAttachedAttributes() const;
|
||||||
|
|
||||||
void *mapVertexData();
|
void *mapVertexData();
|
||||||
void unmapVertexData(size_t modifiedoffset = 0, size_t modifiedsize = -1);
|
void unmapVertexData(size_t modifiedoffset = 0, size_t modifiedsize = -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user