Meshes expose vertex buffers, part 1

(compiles, but is currently half-implemented and broken)
This commit is contained in:
Alex Szpakowski
2020-01-19 15:03:19 -04:00
parent 816f132c9d
commit 25d9ae2ba0
12 changed files with 277 additions and 128 deletions
+2 -2
View File
@@ -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;
};