PythonQt.QtGui.QOpenGLVertexArrayObject · declarations 001
Back to PythonQt.QtGui.QOpenGLVertexArrayObject
bind
bind() -> None
X.bind()
Supplemental documentation: Qt 5 reference:
void QOpenGLVertexArrayObject::bind()
Binds this vertex array object to the OpenGL binding point. From this point on and until release() is called or another vertex array object is bound, any modifications made to vertex data state are stored inside this vertex array object.
If another vertex array object is then bound you can later restore the set of state associated with this object by calling bind() on this object once again. This allows efficient changes between vertex data states in rendering functions.
Upstream PySide2 reference signatures (binding differences may apply):
bind(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#bind
create
create() -> bool
X.create() -> bool
Supplemental documentation: Qt 5 reference:
bool QOpenGLVertexArrayObject::create()
Creates the underlying OpenGL vertex array object. There must be a valid OpenGL context that supports vertex array objects current for this function to succeed.
Returns true if the OpenGL vertex array object was successfully created.
When the return value is false, vertex array object support is not available. This is
not an error: on systems with OpenGL 2.x or OpenGL ES 2.0 vertex array objects may not
be supported. The application is free to continue execution in this case, but it then
has to be prepared to operate in a VAO-less manner too. This means that instead of
merely calling
bind(), the
value of
isCreated()
must be checked and the vertex arrays has to be initialized in the traditional way when
there is no vertex array object present.
See also isCreated().
Upstream PySide2 reference signatures (binding differences may apply):
create(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#create
destroy
destroy() -> None
X.destroy()
Supplemental documentation: Qt 5 reference:
void QOpenGLVertexArrayObject::destroy()
Destroys the underlying OpenGL vertex array object. There must be a valid OpenGL context that supports vertex array objects current for this function to succeed.
Upstream PySide2 reference signatures (binding differences may apply):
destroy(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#destroy
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QOpenGLVertexArrayObject.destroyed; argument details are not documented.
isCreated
isCreated() -> bool
X.isCreated() -> bool
Supplemental documentation: Qt 5 reference:
bool QOpenGLVertexArrayObject::isCreated() const
Returns true is the underlying OpenGL vertex array object has been created. If this
returns true and the associated OpenGL context is current, then you are able to
bind() this
object.
Upstream PySide2 reference signatures (binding differences may apply):
isCreated(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#isCreated
objectId
objectId() -> int
X.objectId() -> int
Supplemental documentation: Qt 5 reference:
GLuint QOpenGLVertexArrayObject::objectId() const
Returns the id of the underlying OpenGL vertex array object.
Upstream PySide2 reference signatures (binding differences may apply):
objectId(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#objectId
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QOpenGLVertexArrayObject.objectNameChanged; argument details are not documented.
release
release() -> None
X.release()
Supplemental documentation: Qt 5 reference:
void QOpenGLVertexArrayObject::release()
Unbinds this vertex array object by binding the default vertex array object (id \= 0).
Upstream PySide2 reference signatures (binding differences may apply):
release(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qopenglvertexarrayobject.html#release