Home
·
All Classes
·
Modules
QGLContext Class Reference
[
QtOpenGL
module]
Types
enum
BindOption
{ NoBindOption, InvertedYBindOption, MipmapBindOption, PremultipliedAlphaBindOption, LinearFilteringBindOption, DefaultBindOption }
class
BindOptions
Methods
__init__
(
self
, QGLFormat, QPaintDevice)
int
bindTexture
(
self
, QImage, int
target
= GL_TEXTURE_2D, int
format
= GL_RGBA)
int
bindTexture
(
self
, QPixmap, int
target
= GL_TEXTURE_2D, int
format
= GL_RGBA)
int
bindTexture
(
self
, QString)
int
bindTexture
(
self
, QImage, int, int, BindOptions)
int
bindTexture
(
self
, QPixmap, int, int, BindOptions)
bool
chooseContext
(
self
, QGLContext
shareContext
= None)
sip.voidptr
chooseVisual
(
self
)
bool
create
(
self
, QGLContext
shareContext
= None)
deleteTexture
(
self
, int)
QPaintDevice
device
(
self
)
bool
deviceIsPixmap
(
self
)
doneCurrent
(
self
)
drawTexture
(
self
, QRectF, int, int
textureTarget
= GL_TEXTURE_2D)
drawTexture
(
self
, QPointF, int, int
textureTarget
= GL_TEXTURE_2D)
QGLFormat
format
(
self
)
generateFontDisplayLists
(
self
, QFont, int)
sip.voidptr
getProcAddress
(
self
, QString)
bool
initialized
(
self
)
bool
isSharing
(
self
)
bool
isValid
(
self
)
makeCurrent
(
self
)
QColor
overlayTransparentColor
(
self
)
QGLFormat
requestedFormat
(
self
)
reset
(
self
)
setFormat
(
self
, QGLFormat)
setInitialized
(
self
, bool)
setWindowCreated
(
self
, bool)
swapBuffers
(
self
)
bool
windowCreated
(
self
)
Static Methods
bool
areSharing
(QGLContext, QGLContext)
QGLContext
currentContext
()
setTextureCacheLimit
(int)
int
textureCacheLimit
()
Detailed Description
Type Documentation
QGLContext.BindOption
Method Documentation
QGLContext.__init__ (
self
,
QGLFormat
,
QPaintDevice
)
bool QGLContext.areSharing (
QGLContext
,
QGLContext
)
int QGLContext.bindTexture (
self
,
QImage
, int
target
= GL_TEXTURE_2D, int
format
= GL_RGBA)
int QGLContext.bindTexture (
self
,
QPixmap
, int
target
= GL_TEXTURE_2D, int
format
= GL_RGBA)
int QGLContext.bindTexture (
self
, QString)
int QGLContext.bindTexture (
self
,
QImage
, int, int,
BindOptions
)
int QGLContext.bindTexture (
self
,
QPixmap
, int, int,
BindOptions
)
bool QGLContext.chooseContext (
self
,
QGLContext
shareContext
= None)
sip.voidptr QGLContext.chooseVisual (
self
)
bool QGLContext.create (
self
,
QGLContext
shareContext
= None)
QGLContext
QGLContext.currentContext ()
QGLContext.deleteTexture (
self
, int)
QPaintDevice
QGLContext.device (
self
)
bool QGLContext.deviceIsPixmap (
self
)
QGLContext.doneCurrent (
self
)
QGLContext.drawTexture (
self
,
QRectF
, int, int
textureTarget
= GL_TEXTURE_2D)
QGLContext.drawTexture (
self
,
QPointF
, int, int
textureTarget
= GL_TEXTURE_2D)
QGLFormat
QGLContext.format (
self
)
QGLContext.generateFontDisplayLists (
self
,
QFont
, int)
sip.voidptr QGLContext.getProcAddress (
self
, QString)
bool QGLContext.initialized (
self
)
bool QGLContext.isSharing (
self
)
bool QGLContext.isValid (
self
)
QGLContext.makeCurrent (
self
)
QColor
QGLContext.overlayTransparentColor (
self
)
QGLFormat
QGLContext.requestedFormat (
self
)
QGLContext.reset (
self
)
QGLContext.setFormat (
self
,
QGLFormat
)
QGLContext.setInitialized (
self
, bool)
QGLContext.setTextureCacheLimit (int)
QGLContext.setWindowCreated (
self
, bool)
QGLContext.swapBuffers (
self
)
int QGLContext.textureCacheLimit ()
bool QGLContext.windowCreated (
self
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0