|
CGAL 5.0 - Three
|
#include <CGAL/Three/Buffer_objects.h>
The Vao struct is a wrapper for the QOpenGLVertexArrayObject.
They are context dependent, most of the time it means Viewer dependent.
Public Member Functions | |
| Vao (QOpenGLShaderProgram *program) | |
Creates a Vao. More... | |
| Vao (Vao *vao, QOpenGLShaderProgram *program) | |
Creates a Vao from another one. More... | |
| void | addVbo (Vbo *vbo) |
Adds a Vbo to the list of Vbos. | |
| void | bind () |
Makes the Vao and its program active until release() is called. | |
| void | release () |
Makes the Vao and its program not active. | |
| CGAL::Three::Vao::Vao | ( | QOpenGLShaderProgram * | program | ) |
| CGAL::Three::Vao::Vao | ( | Vao * | vao, |
| QOpenGLShaderProgram * | program | ||
| ) |
Creates a Vao from another one.
| program | the QOpenGLShaderProgram corresponding to the one of vao but from the right viewer. |
| vao | the Vao to copy. |
All vao's vbos will be shared. Use it for shared viewers. initializeBuffers() will have to be called again.