vertex-array

Can I delete OpenGL vertex arrays after calling glDrawArrays?

I am generating the vertex arrays on the fly on each render and I want to delete the arrays afterwards. Does glDrawArrays immediately copy the vertex arrays to the server? Hence is it safe to delete the vertex arrays after calling glDrawArrays? float * vp = GetVertices(); // Regenerated on each render glVertexPointer(3, GL_FLOAT, 3 * s...

OpenGL Vertex Arrays

I have a struct called Point (which happens to be a Python Extension) that looks like this: struct Point { PyObject_HEAD // Macro that expands to include a few more members double x; double y; }; And I have another struct that will hold a bunch of these in two arrays: struct Polygon { int length; Point **vertex...