mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Added 2 new variants of Mesh:attachAttribute (resolves issue #1233). Thanks xenthral!
- Added Mesh:attachAttribute(name, mesh, nameInMesh) which retargets the attribute name in the specified Mesh (3rd argument) to a new name for this mesh (1st argument). - Added Mesh:attachAttribute(name) which detaches any attached attributes from other meshes for that attribute name. --HG-- branch : minor
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
* Attaches a vertex attribute from another Mesh to this one. The attribute
|
||||
* will be used when drawing this Mesh.
|
||||
**/
|
||||
void attachAttribute(const std::string &name, Mesh *mesh);
|
||||
void attachAttribute(const std::string &name, Mesh *mesh, const std::string &attachname);
|
||||
|
||||
void *mapVertexData();
|
||||
void unmapVertexData(size_t modifiedoffset = 0, size_t modifiedsize = -1);
|
||||
|
||||
Reference in New Issue
Block a user