Skip to content

PythonQt.Qt.QGLBuffer

QGLBuffer

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Buffer objects are created in the GL server so that the client application can avoid uploading vertices, indices, texture image data, etc every time they are needed.

QGLBuffer objects can be copied around as a reference to the underlying GL buffer object:

    QGLBuffer buffer1(QGLBuffer::IndexBuffer);
    buffer1.create();

    QGLBuffer buffer2 = buffer1;

QGLBuffer performs a shallow copy when objects are copied in this manner, but does not implement copy-on-write semantics. The original object will be affected whenever the copy is modified.

Note: This class has been deprecated in favor of QOpenGLBuffer.

Source: https://doc.qt.io/archives/qt-5.15/qglbuffer.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Access attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
DynamicCopy attribute Any (shared captured text)
DynamicDraw attribute Any (shared captured text)
DynamicRead attribute Any (shared captured text)
IndexBuffer attribute Any (shared captured text)
PixelPackBuffer attribute Any (shared captured text)
PixelUnpackBuffer attribute Any (shared captured text)
ReadOnly attribute Any (shared captured text)
ReadWrite attribute Any (shared captured text)
StaticCopy attribute Any (shared captured text)
StaticDraw attribute Any (shared captured text)
StaticRead attribute Any (shared captured text)
StreamCopy attribute Any (shared captured text)
StreamDraw attribute Any (shared captured text)
StreamRead attribute Any (shared captured text)
Type attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
UsagePattern attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
VertexBuffer attribute Any (shared captured text)
WriteOnly attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
allocate function (self, data: Any, count: int) -> None X.allocate(data, count) (shared captured text)
bind function (self) -> bool X.bind() -> bool (shared captured text)
bufferId function (self) -> int X.bufferId() -> int (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
create function (self) -> bool X.create() -> bool (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
destroy function (self) -> None Destroys this buffer object, including the storage being used in the GL server. (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
isCreated function (self) -> bool X.isCreated() -> bool (shared captured text)
map function (self, access: Any) -> int Maps the contents of this buffer into the application's memory space and returns a pointer to it. (shared captured text)
operator_assign function (self, other: Any) -> Any X.operator_assign(other) -> PythonQt.QtOpenGL.QGLBuffer (shared captured text)
read function (self, offset: int, data: int, count: int) -> bool X.read(offset, data, count) -> bool (shared captured text)
release function (self) -> None Releases the buffer associated with this object from the current GL context. (shared captured text)
setUsagePattern function (self, value: Any) -> None Sets the usage pattern for this buffer object to value. (shared captured text)
size function (self) -> int X.size() -> int (shared captured text)
type function (self) -> Any Returns the type of buffer represented by this object. (shared captured text)
unmap function (self) -> bool X.unmap() -> bool (shared captured text)
usagePattern function (self) -> Any Returns the usage pattern for this buffer object. (shared captured text)
write function (self, offset: int, data: int, count: int) -> None X.write(offset, data, count) (shared captured text)