PDA

View Full Version : vbo and delete



giuseppe500
08-16-2012, 08:59 AM
hello.
I have a simple project that creates some vertex buffer , then bind them to a shader that does the render of the buffers.
I see in some application that i find in google that the vertex buffers are deleted after the drawing.
Why?
if i must render a teapot why i must delete and recreate the vbos every cicle of drawing?

Is possible to store the vbo and reuse it?
and for shaders and textures ?
the same question
thanks.

Alfonse Reinheart
08-16-2012, 09:35 AM
I see in some application that i find in google that the vertex buffers are deleted after the drawing.

Where? Indeed, if you see such an example, then odds are good that you should flee from that site immediately if not sooner.

V-man
08-16-2012, 02:09 PM
It is covered in the Wiki
http://www.opengl.org/wiki/Common_Mistakes#glGenTextures_in_render_function