1 #ifndef NTA_INSTANCEBATCH_H_INCLUDED
2 #define NTA_INSTANCEBATCH_H_INCLUDED
4 #include "nta/SpriteBatch.h"
10 glGenVertexArrays(1, &vao);
14 glGenBuffers(1, &vbos.back());
23 std::vector<GLuint> vbos;
28 std::vector<InstancedGlyph> m_glyphs;
39 void add_glyph(crvec4 posRect, GLuint texture = 0,
40 crvec4 uvRect = glm::vec4(0,0,1,1),
41 crvec4 color = glm::vec4(1));
48 void* data, GLsizeiptr size, GLuint divisor = 1);
53 #endif // NTA_INSTANCEBATCH_H_INCLUDED