This class was introduced in Qt 5.1.
Note: All functions in this class are reentrant.
QOpenGLVertexArrayObject::Binder is a simple convenience class that can be used to assist with the binding and releasing of QOpenGLVertexArrayObject instances. This class is to QOpenGLVertexArrayObject as QMutexLocker is to QMutex.
This class implements the RAII principle which helps to ensure behavior in complex code or in the presence of exceptions.
The constructor of this class accepts a QOpenGLVertexArrayObject (VAO) as an argument and attempts to bind the VAO, calling QOpenGLVertexArrayObject::create() if necessary. The destructor of this class calls QOpenGLVertexArrayObject::release() which unbinds the VAO.
See also QOpenGLVertexArrayObject.
Destroys the QOpenGLVertexArrayObject::Binder and releases the associated vertex array object.
Can be used to rebind the associated vertex array object.
See also release().
Can be used to temporarily release the associated vertex array object.
See also rebind().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.