I am rendering some scenery with Pyopengl. Everything works, but for every frame I need to pass all vertices to opengl, in a way:
for object in objects:
for face in object:
for vertex in face:
glBegin(GL_QUADS)
glVertex3f(vertex)
glEnd()
Is there a way how to avoid three loops for the static objects? I would like to pass the vertices only once and in next frame just call the references of objects that should render again (in the similar way like the textures).
Is that possible somehow?