Binder¶
The
Binderclass is a convenience class to help with the binding and releasing of OpenGL Vertex Array Objects. More…

Synopsis¶
Functions¶
Detailed Description¶
Binderis a simple convenience class that can be used to assist with the binding and releasing ofQOpenGLVertexArrayObjectinstances. This class is toQOpenGLVertexArrayObjectasQMutexLockeris toQMutex.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, callingcreate()if necessary. The destructor of this class callsrelease()which unbinds the VAO.If needed the VAO can be temporarily unbound with the
release()function and bound once more withrebind().See also
- class PySide2.QtGui.QOpenGLVertexArrayObject.Binder(v)¶
Creates a
Binderobject and bindsvby callingbind(). If necessary it first callscreate().
- PySide2.QtGui.QOpenGLVertexArrayObject.Binder.rebind()¶
Can be used to rebind the associated vertex array object.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.