java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.opengl.QOpenGLBuffer
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QOpenGLBuffer extends QtObject implements Cloneable
Functions for creating and managing OpenGL buffer objects
Java wrapper for Qt class QOpenGLBuffer
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QOpenGLBuffer.Access
Java wrapper for Qt enum QOpenGLBuffer::Accessstatic class
QOpenGLBuffer.RangeAccessFlag
Java wrapper for Qt enum QOpenGLBuffer::RangeAccessFlagstatic class
QOpenGLBuffer.RangeAccessFlags
QFlags type for enumQOpenGLBuffer.RangeAccessFlag
static class
QOpenGLBuffer.Type
Java wrapper for Qt enum QOpenGLBuffer::Typestatic class
QOpenGLBuffer.UsagePattern
Java wrapper for Qt enum QOpenGLBuffer::UsagePattern -
Constructor Summary
Constructors Modifier Constructor Description QOpenGLBuffer()
QOpenGLBuffer(QOpenGLBuffer other)
QOpenGLBuffer(QOpenGLBuffer.Type type)
protected
QOpenGLBuffer(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
allocate(int count)
void
allocate(Buffer data, int count)
boolean
bind()
int
bufferId()
QOpenGLBuffer
clone()
boolean
create()
void
destroy()
boolean
isCreated()
ByteBuffer
map(QOpenGLBuffer.Access access)
ByteBuffer
mapRange(int offset, int count, QOpenGLBuffer.RangeAccessFlag... access)
Overloaded function formapRange(int, int, io.qt.opengl.QOpenGLBuffer.RangeAccessFlags)
.ByteBuffer
mapRange(int offset, int count, QOpenGLBuffer.RangeAccessFlags access)
boolean
read(int offset, Buffer data, int count)
void
release()
static void
release(QOpenGLBuffer.Type type)
void
setUsagePattern(QOpenGLBuffer.UsagePattern value)
int
size()
QOpenGLBuffer.Type
type()
boolean
unmap()
QOpenGLBuffer.UsagePattern
usagePattern()
void
write(int offset, Buffer data, int count)
-
Constructor Details
-
QOpenGLBuffer
public QOpenGLBuffer() -
QOpenGLBuffer
-
QOpenGLBuffer
-
QOpenGLBuffer
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
allocate
-
allocate
-
bind
-
bufferId
-
create
-
destroy
-
isCreated
-
map
-
mapRange
@QtUninvokable public final ByteBuffer mapRange(int offset, int count, QOpenGLBuffer.RangeAccessFlag... access)Overloaded function for
mapRange(int, int, io.qt.opengl.QOpenGLBuffer.RangeAccessFlags)
. -
mapRange
@QtUninvokable public final ByteBuffer mapRange(int offset, int count, QOpenGLBuffer.RangeAccessFlags access) -
read
-
release
-
setUsagePattern
-
size
-
type
-
unmap
-
usagePattern
-
write
-
release
-
clone
-