#include <qgl.h>
Public Types |
|
| enum | OpenGLContextProfile { NoProfile, CoreProfile, CompatibilityProfile } |
| enum | OpenGLVersionFlag
{ OpenGL_Version_None = 0x00000000, OpenGL_Version_1_1 = 0x00000001, OpenGL_Version_1_2 = 0x00000002, OpenGL_Version_1_3 = 0x00000004, OpenGL_Version_1_4 = 0x00000008, OpenGL_Version_1_5 = 0x00000010, OpenGL_Version_2_0 = 0x00000020, OpenGL_Version_2_1 = 0x00000040, OpenGL_ES_Common_Version_1_0 = 0x00000080, OpenGL_ES_CommonLite_Version_1_0 = 0x00000100, OpenGL_ES_Common_Version_1_1 = 0x00000200, OpenGL_ES_CommonLite_Version_1_1 = 0x00000400, OpenGL_ES_Version_2_0 = 0x00000800, OpenGL_Version_3_0 = 0x00001000, OpenGL_Version_3_1 = 0x00002000, OpenGL_Version_3_2 = 0x00004000, OpenGL_Version_3_3 = 0x00008000, OpenGL_Version_4_0 = 0x00010000 } |
Public Member Functions |
|
| QGLFormat () | |
| QGLFormat (QGL::FormatOptions options, int plane=0) | |
| QGLFormat (const QGLFormat &other) | |
| QGLFormat & | operator= (const QGLFormat &other) |
| ~QGLFormat () | |
| void | setDepthBufferSize (int size) |
| int | depthBufferSize () const |
| void | setAccumBufferSize (int size) |
| int | accumBufferSize () const |
| void | setRedBufferSize (int size) |
| int | redBufferSize () const |
| void | setGreenBufferSize (int size) |
| int | greenBufferSize () const |
| void | setBlueBufferSize (int size) |
| int | blueBufferSize () const |
| void | setAlphaBufferSize (int size) |
| int | alphaBufferSize () const |
| void | setStencilBufferSize (int size) |
| int | stencilBufferSize () const |
| void | setSampleBuffers (bool enable) |
| bool | sampleBuffers () const |
| void | setSamples (int numSamples) |
| int | samples () const |
| void | setSwapInterval (int interval) |
| int | swapInterval () const |
| bool | doubleBuffer () const |
| void | setDoubleBuffer (bool enable) |
| bool | depth () const |
| void | setDepth (bool enable) |
| bool | rgba () const |
| void | setRgba (bool enable) |
| bool | alpha () const |
| void | setAlpha (bool enable) |
| bool | accum () const |
| void | setAccum (bool enable) |
| bool | stencil () const |
| void | setStencil (bool enable) |
| bool | stereo () const |
| void | setStereo (bool enable) |
| bool | directRendering () const |
| void | setDirectRendering (bool enable) |
| bool | hasOverlay () const |
| void | setOverlay (bool enable) |
| int | plane () const |
| void | setPlane (int plane) |
| void | setOption (QGL::FormatOptions opt) |
| bool | testOption (QGL::FormatOptions opt) const |
| void | setVersion (int major, int minor) |
| int | majorVersion () const |
| int | minorVersion () const |
| void | setProfile (OpenGLContextProfile profile) |
| OpenGLContextProfile | profile () const |
Static Public Member Functions |
|
| static QGLFormat | defaultFormat () |
| static void | setDefaultFormat (const QGLFormat &f) |
| static QGLFormat | defaultOverlayFormat () |
| static void | setDefaultOverlayFormat (const QGLFormat &f) |
| static bool | hasOpenGL () |
| static bool | hasOpenGLOverlays () |
| static OpenGLVersionFlags | openGLVersionFlags () |
Friends |
|
| Q_OPENGL_EXPORT bool | operator== (const QGLFormat &, const QGLFormat &) |
| Q_OPENGL_EXPORT bool | operator!= (const QGLFormat &, const QGLFormat &) |
| Q_OPENGL_EXPORT QDebug | operator<< (QDebug, const QGLFormat &) |
| enum OpenGLContextProfile |
| enum OpenGLVersionFlag |
Definition at line 253 of file qgl.h.
{
OpenGL_Version_None = 0x00000000,
OpenGL_Version_1_1 = 0x00000001,
OpenGL_Version_1_2 = 0x00000002,
OpenGL_Version_1_3 = 0x00000004,
OpenGL_Version_1_4 = 0x00000008,
OpenGL_Version_1_5 = 0x00000010,
OpenGL_Version_2_0 = 0x00000020,
OpenGL_Version_2_1 = 0x00000040,
OpenGL_ES_Common_Version_1_0 = 0x00000080,
OpenGL_ES_CommonLite_Version_1_0 = 0x00000100,
OpenGL_ES_Common_Version_1_1 = 0x00000200,
OpenGL_ES_CommonLite_Version_1_1 = 0x00000400,
OpenGL_ES_Version_2_0 = 0x00000800,
OpenGL_Version_3_0 = 0x00001000,
OpenGL_Version_3_1 = 0x00002000,
OpenGL_Version_3_2 = 0x00004000,
OpenGL_Version_3_3 = 0x00008000,
OpenGL_Version_4_0 = 0x00010000
};
| QGLFormat | ( | ) |
| QGLFormat | ( | QGL::FormatOptions | options, |
| int | plane = 0 |
||
| ) |
| ~QGLFormat | ( | ) |
| void setDepthBufferSize | ( | int | size | ) |
| int depthBufferSize | ( | ) | const |
| void setAccumBufferSize | ( | int | size | ) |
| int accumBufferSize | ( | ) | const |
| void setRedBufferSize | ( | int | size | ) |
| int redBufferSize | ( | ) | const |
| void setGreenBufferSize | ( | int | size | ) |
| int greenBufferSize | ( | ) | const |
| void setBlueBufferSize | ( | int | size | ) |
| int blueBufferSize | ( | ) | const |
| void setAlphaBufferSize | ( | int | size | ) |
| int alphaBufferSize | ( | ) | const |
| void setStencilBufferSize | ( | int | size | ) |
| int stencilBufferSize | ( | ) | const |
| void setSampleBuffers | ( | bool | enable | ) |
| bool sampleBuffers | ( | ) | const [inline] |
Definition at line 636 of file qgl.h.
{
return testOption(QGL::SampleBuffers);
}
| void setSamples | ( | int | numSamples | ) |
| int samples | ( | ) | const |
| void setSwapInterval | ( | int | interval | ) |
| int swapInterval | ( | ) | const |
| bool doubleBuffer | ( | ) | const [inline] |
Definition at line 591 of file qgl.h.
{
return testOption(QGL::DoubleBuffer);
}
| void setDoubleBuffer | ( | bool | enable | ) |
| bool depth | ( | ) | const [inline] |
Definition at line 596 of file qgl.h.
{
return testOption(QGL::DepthBuffer);
}
| void setDepth | ( | bool | enable | ) |
| bool rgba | ( | ) | const [inline] |
| void setRgba | ( | bool | enable | ) |
| bool alpha | ( | ) | const [inline] |
Definition at line 606 of file qgl.h.
{
return testOption(QGL::AlphaChannel);
}
| void setAlpha | ( | bool | enable | ) |
| bool accum | ( | ) | const [inline] |
Definition at line 611 of file qgl.h.
{
return testOption(QGL::AccumBuffer);
}
| void setAccum | ( | bool | enable | ) |
| bool stencil | ( | ) | const [inline] |
Definition at line 616 of file qgl.h.
{
return testOption(QGL::StencilBuffer);
}
| void setStencil | ( | bool | enable | ) |
| bool stereo | ( | ) | const [inline] |
Definition at line 621 of file qgl.h.
{
return testOption(QGL::StereoBuffers);
}
| void setStereo | ( | bool | enable | ) |
| bool directRendering | ( | ) | const [inline] |
Definition at line 626 of file qgl.h.
{
return testOption(QGL::DirectRendering);
}
| void setDirectRendering | ( | bool | enable | ) |
| bool hasOverlay | ( | ) | const [inline] |
Definition at line 631 of file qgl.h.
{
return testOption(QGL::HasOverlay);
}
| void setOverlay | ( | bool | enable | ) |
| int plane | ( | ) | const |
| void setPlane | ( | int | plane | ) |
| void setOption | ( | QGL::FormatOptions | opt | ) |
| bool testOption | ( | QGL::FormatOptions | opt | ) | const |
| static QGLFormat defaultFormat | ( | ) | [static] |
| static void setDefaultFormat | ( | const QGLFormat & | f | ) | [static] |
| static QGLFormat defaultOverlayFormat | ( | ) | [static] |
| static void setDefaultOverlayFormat | ( | const QGLFormat & | f | ) | [static] |
| static bool hasOpenGL | ( | ) | [static] |
| static bool hasOpenGLOverlays | ( | ) | [static] |
| void setVersion | ( | int | major, |
| int | minor | ||
| ) |
| int majorVersion | ( | ) | const |
| int minorVersion | ( | ) | const |
| void setProfile | ( | OpenGLContextProfile | profile | ) |
| OpenGLContextProfile profile | ( | ) | const |
| static OpenGLVersionFlags openGLVersionFlags | ( | ) | [static] |