Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Shape::MakeGeom(std::vector<GLfloat> Verts, GLuint* GlobalOffset, GLuint* ShapeCounter, std::vector<Shape> s)
- {
- GLfloat Temp[Verts.size()];
- for(int i = 0; i < Verts.size(); i++)
- {
- Temp[i] = Verts[i];
- }
- //0 is offset
- glBufferSubData(GL_ARRAY_BUFFER, *GlobalOffset, sizeof(Temp), Temp);
- //GLOBAL OFFSET +
- ShapeByteOffset += *GlobalOffset;
- *GlobalOffset += sizeof(Temp);
- *ShapeCounter++;
- s.push_back(*this);
- }
Advertisement
Add Comment
Please, Sign In to add comment