mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Meshes expose vertex buffers, part 1
(compiles, but is currently half-implemented and broken)
This commit is contained in:
@@ -93,7 +93,7 @@ public:
|
||||
* Attaches a specific vertex attribute from a Mesh to this SpriteBatch.
|
||||
* The vertex attribute will be used when drawing the SpriteBatch.
|
||||
**/
|
||||
void attachAttribute(const std::string &name, Mesh *mesh);
|
||||
void attachAttribute(const std::string &name, Buffer *buffer);
|
||||
|
||||
void setDrawRange(int start, int count);
|
||||
void setDrawRange();
|
||||
@@ -106,7 +106,7 @@ private:
|
||||
|
||||
struct AttachedAttribute
|
||||
{
|
||||
StrongRef<Mesh> mesh;
|
||||
StrongRef<Buffer> buffer;
|
||||
int index;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user