Hi all. I’m too new in OpenGL programming.
So is it possible to add or reset some vertexs dynamicly ?
In the Torus sample (Code Resources - OpenGL Wiki) How to update the vertex number. For exemple by pressing + or - keys
Thanx a lot.
Hi all. I’m too new in OpenGL programming.
So is it possible to add or reset some vertexs dynamicly ?
In the Torus sample (Code Resources - OpenGL Wiki) How to update the vertex number. For exemple by pressing + or - keys
Thanx a lot.
Instead of compiling a display list, slap your vertices into an array, then manipulate them however you want. Indexed arrays are better still.
Look at glDrawArrays and glDrawElements.