Home
·
All Classes
·
Modules
QGLBuffer Class Reference
[
QtOpenGL
module]
Types
enum
Access
{ ReadOnly, WriteOnly, ReadWrite }
enum
Type
{ VertexBuffer, IndexBuffer, PixelPackBuffer, PixelUnpackBuffer }
enum
UsagePattern
{ StreamDraw, StreamRead, StreamCopy, StaticDraw, ..., DynamicCopy }
Methods
__init__
(
self
)
__init__
(
self
, Type
type
)
__init__
(
self
, QGLBuffer
other
)
allocate
(
self
, sip.voidptr
data
, int
count
)
allocate
(
self
, int
count
)
bool
bind
(
self
)
int
bufferId
(
self
)
bool
create
(
self
)
destroy
(
self
)
bool
isCreated
(
self
)
sip.voidptr
map
(
self
, Access
access
)
bool
read
(
self
, int
offset
, sip.voidptr
data
, int
count
)
release
(
self
)
setUsagePattern
(
self
, UsagePattern
value
)
int
size
(
self
)
Type
type
(
self
)
bool
unmap
(
self
)
UsagePattern
usagePattern
(
self
)
write
(
self
, int
offset
, sip.voidptr
data
, int
count
)
Static Methods
release
(Type
type
)
Detailed Description
Type Documentation
QGLBuffer.Access
QGLBuffer.Type
QGLBuffer.UsagePattern
Method Documentation
QGLBuffer.__init__ (
self
)
QGLBuffer.__init__ (
self
,
Type
type
)
QGLBuffer.__init__ (
self
,
QGLBuffer
other
)
QGLBuffer.allocate (
self
, sip.voidptr
data
, int
count
)
QGLBuffer.allocate (
self
, int
count
)
bool QGLBuffer.bind (
self
)
int QGLBuffer.bufferId (
self
)
bool QGLBuffer.create (
self
)
QGLBuffer.destroy (
self
)
bool QGLBuffer.isCreated (
self
)
sip.voidptr QGLBuffer.map (
self
,
Access
access
)
bool QGLBuffer.read (
self
, int
offset
, sip.voidptr
data
, int
count
)
QGLBuffer.release (
self
)
QGLBuffer.release (
Type
type
)
QGLBuffer.setUsagePattern (
self
,
UsagePattern
value
)
int QGLBuffer.size (
self
)
Type
QGLBuffer.type (
self
)
bool QGLBuffer.unmap (
self
)
UsagePattern
QGLBuffer.usagePattern (
self
)
QGLBuffer.write (
self
, int
offset
, sip.voidptr
data
, int
count
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0