Home
·
All Classes
·
Modules
QGLFormat Class Reference
[
QtOpenGL
module]
Types
enum
OpenGLContextProfile
{ NoProfile, CoreProfile, CompatibilityProfile }
enum
OpenGLVersionFlag
{ OpenGL_Version_None, OpenGL_Version_1_1, OpenGL_Version_1_2, OpenGL_Version_1_3, ..., OpenGL_ES_Version_2_0 }
class
OpenGLVersionFlags
Methods
__init__
(
self
)
__init__
(
self
, QGL.FormatOptions, int
plane
= 0)
__init__
(
self
, QGLFormat)
bool
accum
(
self
)
int
accumBufferSize
(
self
)
bool
alpha
(
self
)
int
alphaBufferSize
(
self
)
int
blueBufferSize
(
self
)
bool
depth
(
self
)
int
depthBufferSize
(
self
)
bool
directRendering
(
self
)
bool
doubleBuffer
(
self
)
int
greenBufferSize
(
self
)
bool
hasOverlay
(
self
)
int
majorVersion
(
self
)
int
minorVersion
(
self
)
int
plane
(
self
)
OpenGLContextProfile
profile
(
self
)
int
redBufferSize
(
self
)
bool
rgba
(
self
)
bool
sampleBuffers
(
self
)
int
samples
(
self
)
setAccum
(
self
, bool)
setAccumBufferSize
(
self
, int)
setAlpha
(
self
, bool)
setAlphaBufferSize
(
self
, int)
setBlueBufferSize
(
self
, int)
setDepth
(
self
, bool)
setDepthBufferSize
(
self
, int)
setDirectRendering
(
self
, bool)
setDoubleBuffer
(
self
, bool)
setGreenBufferSize
(
self
, int)
setOption
(
self
, QGL.FormatOptions)
setOverlay
(
self
, bool)
setPlane
(
self
, int)
setProfile
(
self
, OpenGLContextProfile
profile
)
setRedBufferSize
(
self
, int)
setRgba
(
self
, bool)
setSampleBuffers
(
self
, bool)
setSamples
(
self
, int)
setStencil
(
self
, bool)
setStencilBufferSize
(
self
, int)
setStereo
(
self
, bool)
setSwapInterval
(
self
, int)
setVersion
(
self
, int
major
, int
minor
)
bool
stencil
(
self
)
int
stencilBufferSize
(
self
)
bool
stereo
(
self
)
int
swapInterval
(
self
)
bool
testOption
(
self
, QGL.FormatOptions)
Static Methods
QGLFormat
defaultFormat
()
QGLFormat
defaultOverlayFormat
()
bool
hasOpenGL
()
bool
hasOpenGLOverlays
()
OpenGLVersionFlags
openGLVersionFlags
()
setDefaultFormat
(QGLFormat)
setDefaultOverlayFormat
(QGLFormat)
Special Methods
bool
__eq__
(
self
, QGLFormat)
bool
__ne__
(
self
, QGLFormat)
Detailed Description
Type Documentation
QGLFormat.OpenGLContextProfile
QGLFormat.OpenGLVersionFlag
Method Documentation
QGLFormat.__init__ (
self
)
QGLFormat.__init__ (
self
,
QGL.FormatOptions
, int
plane
= 0)
QGLFormat.__init__ (
self
,
QGLFormat
)
bool QGLFormat.accum (
self
)
int QGLFormat.accumBufferSize (
self
)
bool QGLFormat.alpha (
self
)
int QGLFormat.alphaBufferSize (
self
)
int QGLFormat.blueBufferSize (
self
)
QGLFormat
QGLFormat.defaultFormat ()
QGLFormat
QGLFormat.defaultOverlayFormat ()
bool QGLFormat.depth (
self
)
int QGLFormat.depthBufferSize (
self
)
bool QGLFormat.directRendering (
self
)
bool QGLFormat.doubleBuffer (
self
)
int QGLFormat.greenBufferSize (
self
)
bool QGLFormat.hasOpenGL ()
bool QGLFormat.hasOpenGLOverlays ()
bool QGLFormat.hasOverlay (
self
)
int QGLFormat.majorVersion (
self
)
int QGLFormat.minorVersion (
self
)
OpenGLVersionFlags
QGLFormat.openGLVersionFlags ()
int QGLFormat.plane (
self
)
OpenGLContextProfile
QGLFormat.profile (
self
)
int QGLFormat.redBufferSize (
self
)
bool QGLFormat.rgba (
self
)
bool QGLFormat.sampleBuffers (
self
)
int QGLFormat.samples (
self
)
QGLFormat.setAccum (
self
, bool)
QGLFormat.setAccumBufferSize (
self
, int)
QGLFormat.setAlpha (
self
, bool)
QGLFormat.setAlphaBufferSize (
self
, int)
QGLFormat.setBlueBufferSize (
self
, int)
QGLFormat.setDefaultFormat (
QGLFormat
)
QGLFormat.setDefaultOverlayFormat (
QGLFormat
)
QGLFormat.setDepth (
self
, bool)
QGLFormat.setDepthBufferSize (
self
, int)
QGLFormat.setDirectRendering (
self
, bool)
QGLFormat.setDoubleBuffer (
self
, bool)
QGLFormat.setGreenBufferSize (
self
, int)
QGLFormat.setOption (
self
,
QGL.FormatOptions
)
QGLFormat.setOverlay (
self
, bool)
QGLFormat.setPlane (
self
, int)
QGLFormat.setProfile (
self
,
OpenGLContextProfile
profile
)
QGLFormat.setRedBufferSize (
self
, int)
QGLFormat.setRgba (
self
, bool)
QGLFormat.setSampleBuffers (
self
, bool)
QGLFormat.setSamples (
self
, int)
QGLFormat.setStencil (
self
, bool)
QGLFormat.setStencilBufferSize (
self
, int)
QGLFormat.setStereo (
self
, bool)
QGLFormat.setSwapInterval (
self
, int)
QGLFormat.setVersion (
self
, int
major
, int
minor
)
bool QGLFormat.stencil (
self
)
int QGLFormat.stencilBufferSize (
self
)
bool QGLFormat.stereo (
self
)
int QGLFormat.swapInterval (
self
)
bool QGLFormat.testOption (
self
,
QGL.FormatOptions
)
bool QGLFormat.__eq__ (
self
,
QGLFormat
)
bool QGLFormat.__ne__ (
self
,
QGLFormat
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0