Skip to content

PythonQt.QtGui.QOpenGLBuffer

QOpenGLBuffer

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

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

QOpenGLBuffer objects can be copied around as a reference to the underlying OpenGL buffer object:

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

    QOpenGLBuffer buffer2 = buffer1;

QOpenGLBuffer 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.

Source: https://doc.qt.io/archives/qt-5.15/qopenglbuffer.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
DynamicDraw attribute Any
DynamicRead attribute Any
IndexBuffer attribute Any
PixelPackBuffer attribute Any
PixelUnpackBuffer attribute Any
RangeAccessFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
RangeFlushExplicit attribute Any
RangeInvalidate attribute Any
RangeInvalidateBuffer attribute Any
RangeRead attribute Any
RangeUnsynchronized attribute Any
RangeWrite attribute Any
ReadOnly attribute Any (shared captured text)
ReadWrite attribute Any (shared captured text)
StaticCopy attribute Any
StaticDraw attribute Any
StaticRead attribute Any
StreamCopy attribute Any
StreamDraw attribute Any
StreamRead attribute Any
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.
VertexBuffer attribute Any
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)
bind function (self) -> bool X.bind() -> bool
bufferId function (self) -> int X.bufferId() -> int
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
create function (self) -> bool X.create() -> bool
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 OpenGL server.
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
map function (self, access: Any) -> int Maps the contents of this buffer into the application's memory space and returns a pointer to it.
operator_assign function (self, other: Any) -> Any X.operator_assign(other) -> PythonQt.QtGui.QOpenGLBuffer
read function (self, offset: int, data: int, count: int) -> bool X.read(offset, data, count) -> bool
release function (self) -> None Releases the buffer associated with this object from the current OpenGL context.
setUsagePattern function (self, value: Any) -> None Sets the usage pattern for this buffer object to value.
size function (self) -> int X.size() -> int
type function (self) -> Any Returns the type of buffer represented by this object.
unmap function (self) -> bool X.unmap() -> bool
usagePattern function (self) -> Any Returns the usage pattern for this buffer object.
write function (self, offset: int, data: int, count: int) -> None X.write(offset, data, count)