pub struct QOpenGLBuffer { /* private fields */ }Expand description
C++ class: QOpenGLBuffer.
Implementations§
Source§impl QOpenGLBuffer
impl QOpenGLBuffer
Sourcepub unsafe fn allocate_2a(&self, data: *const c_void, count: c_int)
pub unsafe fn allocate_2a(&self, data: *const c_void, count: c_int)
Calls C++ function: void QOpenGLBuffer::allocate(const void* data, int count).
Sourcepub unsafe fn allocate_1a(&self, count: c_int)
pub unsafe fn allocate_1a(&self, count: c_int)
Calls C++ function: void QOpenGLBuffer::allocate(int count).
Sourcepub unsafe fn buffer_id(&self) -> c_uint
pub unsafe fn buffer_id(&self) -> c_uint
Calls C++ function: unsigned int QOpenGLBuffer::bufferId() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QOpenGLBuffer>>,
) -> Ref<QOpenGLBuffer>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QOpenGLBuffer>>, ) -> Ref<QOpenGLBuffer>
Calls C++ function: QOpenGLBuffer& QOpenGLBuffer::operator=(const QOpenGLBuffer& other).
Sourcepub unsafe fn is_created(&self) -> bool
pub unsafe fn is_created(&self) -> bool
Calls C++ function: bool QOpenGLBuffer::isCreated() const.
Sourcepub unsafe fn map(&self, access: Access) -> *mut c_void
pub unsafe fn map(&self, access: Access) -> *mut c_void
Calls C++ function: void* QOpenGLBuffer::map(QOpenGLBuffer::Access access).
Sourcepub unsafe fn map_range(
&self,
offset: c_int,
count: c_int,
access: QFlags<RangeAccessFlag>,
) -> *mut c_void
pub unsafe fn map_range( &self, offset: c_int, count: c_int, access: QFlags<RangeAccessFlag>, ) -> *mut c_void
Calls C++ function: void* QOpenGLBuffer::mapRange(int offset, int count, QFlags<QOpenGLBuffer::RangeAccessFlag> access).
Sourcepub unsafe fn new_0a() -> CppBox<QOpenGLBuffer>
pub unsafe fn new_0a() -> CppBox<QOpenGLBuffer>
Calls C++ function: [constructor] void QOpenGLBuffer::QOpenGLBuffer().
Sourcepub unsafe fn new_1a(type_: Type) -> CppBox<QOpenGLBuffer>
pub unsafe fn new_1a(type_: Type) -> CppBox<QOpenGLBuffer>
Calls C++ function: [constructor] void QOpenGLBuffer::QOpenGLBuffer(QOpenGLBuffer::Type type).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QOpenGLBuffer>>,
) -> CppBox<QOpenGLBuffer>
pub unsafe fn new_copy( other: impl CastInto<Ref<QOpenGLBuffer>>, ) -> CppBox<QOpenGLBuffer>
Calls C++ function: [constructor] void QOpenGLBuffer::QOpenGLBuffer(const QOpenGLBuffer& other).
Sourcepub unsafe fn read(
&self,
offset: c_int,
data: *mut c_void,
count: c_int,
) -> bool
pub unsafe fn read( &self, offset: c_int, data: *mut c_void, count: c_int, ) -> bool
Calls C++ function: bool QOpenGLBuffer::read(int offset, void* data, int count).
Sourcepub unsafe fn release_mut(&self)
pub unsafe fn release_mut(&self)
Calls C++ function: void QOpenGLBuffer::release().
Sourcepub unsafe fn release(type_: Type)
pub unsafe fn release(type_: Type)
Calls C++ function: static void QOpenGLBuffer::release(QOpenGLBuffer::Type type).
Sourcepub unsafe fn set_usage_pattern(&self, value: UsagePattern)
pub unsafe fn set_usage_pattern(&self, value: UsagePattern)
Calls C++ function: void QOpenGLBuffer::setUsagePattern(QOpenGLBuffer::UsagePattern value).
Sourcepub unsafe fn type_(&self) -> Type
pub unsafe fn type_(&self) -> Type
Calls C++ function: QOpenGLBuffer::Type QOpenGLBuffer::type() const.
Sourcepub unsafe fn usage_pattern(&self) -> UsagePattern
pub unsafe fn usage_pattern(&self) -> UsagePattern
Calls C++ function: QOpenGLBuffer::UsagePattern QOpenGLBuffer::usagePattern() const.