Qt 4.8
Public Functions | List of all members
QGLDefaultOverlayFormat Class Reference
Inheritance diagram for QGLDefaultOverlayFormat:
QGLFormat

Public Functions

 QGLDefaultOverlayFormat ()
 
- Public Functions inherited from QGLFormat
bool accum () const
 Returns true if the accumulation buffer is enabled; otherwise returns false. More...
 
int accumBufferSize () const
 Returns the accumulation buffer size. More...
 
bool alpha () const
 Returns true if the alpha buffer in the framebuffer is enabled; otherwise returns false. More...
 
int alphaBufferSize () const
 Returns the alpha buffer size. More...
 
int blueBufferSize () const
 Returns the blue buffer size. More...
 
bool depth () const
 Returns true if the depth buffer is enabled; otherwise returns false. More...
 
int depthBufferSize () const
 Returns the depth buffer size. More...
 
bool directRendering () const
 Returns true if direct rendering is enabled; otherwise returns false. More...
 
bool doubleBuffer () const
 Returns true if double buffering is enabled; otherwise returns false. More...
 
int greenBufferSize () const
 Returns the green buffer size. More...
 
bool hasOverlay () const
 Returns true if overlay plane is enabled; otherwise returns false. More...
 
int majorVersion () const
 Returns the OpenGL major version. More...
 
int minorVersion () const
 Returns the OpenGL minor version. More...
 
QGLFormatoperator= (const QGLFormat &other)
 Assigns other to this object. More...
 
int plane () const
 Returns the plane of this format. More...
 
OpenGLContextProfile profile () const
 Returns the OpenGL context profile. More...
 
 QGLFormat ()
 Constructs a QGLFormat object with the following default settings: More...
 
 QGLFormat (QGL::FormatOptions options, int plane=0)
 Creates a QGLFormat object that is a copy of the current defaultFormat(). More...
 
 QGLFormat (const QGLFormat &other)
 Constructs a copy of other. More...
 
int redBufferSize () const
 Returns the red buffer size. More...
 
bool rgba () const
 Returns true if RGBA color mode is set. More...
 
bool sampleBuffers () const
 Returns true if multisample buffer support is enabled; otherwise returns false. More...
 
int samples () const
 Returns the number of samples per pixel when multisampling is enabled. More...
 
void setAccum (bool enable)
 If enable is true enables the accumulation buffer; otherwise disables the accumulation buffer. More...
 
void setAccumBufferSize (int size)
 Set the preferred accumulation buffer size, where size is the bit depth for each RGBA component. More...
 
void setAlpha (bool enable)
 If enable is true enables the alpha buffer; otherwise disables the alpha buffer. More...
 
void setAlphaBufferSize (int size)
 Set the preferred alpha buffer size to size. More...
 
void setBlueBufferSize (int size)
 Set the preferred blue buffer size to size. More...
 
void setDepth (bool enable)
 If enable is true enables the depth buffer; otherwise disables the depth buffer. More...
 
void setDepthBufferSize (int size)
 Set the minimum depth buffer size to size. More...
 
void setDirectRendering (bool enable)
 If enable is true enables direct rendering; otherwise disables direct rendering. More...
 
void setDoubleBuffer (bool enable)
 If enable is true sets double buffering; otherwise sets single buffering. More...
 
void setGreenBufferSize (int size)
 Set the preferred green buffer size to size. More...
 
void setOption (QGL::FormatOptions opt)
 Sets the format option to opt. More...
 
void setOverlay (bool enable)
 If enable is true enables an overlay plane; otherwise disables the overlay plane. More...
 
void setPlane (int plane)
 Sets the requested plane to plane. More...
 
void setProfile (OpenGLContextProfile profile)
 Set the OpenGL context profile to profile. More...
 
void setRedBufferSize (int size)
 Set the preferred red buffer size to size. More...
 
void setRgba (bool enable)
 If enable is true sets RGBA mode. More...
 
void setSampleBuffers (bool enable)
 If enable is true, a GL context with multisample buffer support is picked; otherwise ignored. More...
 
void setSamples (int numSamples)
 Set the preferred number of samples per pixel when multisampling is enabled to numSamples. More...
 
void setStencil (bool enable)
 If enable is true enables the stencil buffer; otherwise disables the stencil buffer. More...
 
void setStencilBufferSize (int size)
 Set the preferred stencil buffer size to size. More...
 
void setStereo (bool enable)
 If enable is true enables stereo buffering; otherwise disables stereo buffering. More...
 
void setSwapInterval (int interval)
 Set the preferred swap interval. More...
 
void setVersion (int major, int minor)
 Set the OpenGL version to the major and minor numbers. More...
 
bool stencil () const
 Returns true if the stencil buffer is enabled; otherwise returns false. More...
 
int stencilBufferSize () const
 Returns the stencil buffer size. More...
 
bool stereo () const
 Returns true if stereo buffering is enabled; otherwise returns false. More...
 
int swapInterval () const
 Returns the currently set swap interval. More...
 
bool testOption (QGL::FormatOptions opt) const
 Returns true if format option opt is set; otherwise returns false. More...
 
 ~QGLFormat ()
 Destroys the QGLFormat. More...
 

Additional Inherited Members

- Public Types inherited from QGLFormat
enum  OpenGLContextProfile { NoProfile, CoreProfile, CompatibilityProfile }
 This enum describes the OpenGL context profiles that can be specified for contexts implementing OpenGL version 3. More...
 
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
}
 This enum describes the various OpenGL versions that are recognized by Qt. More...
 
- Static Public Functions inherited from QGLFormat
static QGLFormat defaultFormat ()
 
static QGLFormat defaultOverlayFormat ()
 Returns the default QGLFormat for overlay contexts. More...
 
static bool hasOpenGL ()
 Returns true if the window system has any OpenGL support; otherwise returns false. More...
 
static bool hasOpenGLOverlays ()
 Returns true if the window system supports OpenGL overlays; otherwise returns false. More...
 
static OpenGLVersionFlags openGLVersionFlags ()
 
static void setDefaultFormat (const QGLFormat &f)
 Sets a new default QGLFormat for the application to f. More...
 
static void setDefaultOverlayFormat (const QGLFormat &f)
 Sets a new default QGLFormat for overlay contexts to f. More...
 

Detailed Description

Definition at line 135 of file qgl.cpp.

Constructors and Destructors

◆ QGLDefaultOverlayFormat()

QGLDefaultOverlayFormat::QGLDefaultOverlayFormat ( )
inline

Definition at line 138 of file qgl.cpp.

139  {
140  setOption(QGL::FormatOption(0xffff << 16)); // turn off all options
142  setPlane(1);
143  }
FormatOption
This enum specifies the format options that can be used to configure an OpenGL context.
Definition: qgl.h:144
void setOption(QGL::FormatOptions opt)
Sets the format option to opt.
Definition: qgl.cpp:954
void setPlane(int plane)
Sets the requested plane to plane.
Definition: qgl.cpp:942

The documentation for this class was generated from the following file: