Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2032

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QGLFormat" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; class specifies the display format of an OpenGL rendering context.&lt;/p&gt;
&lt;p&gt;A display format has several characteristics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDoubleBuffer(boolean)&quot;&gt;Double or single buffering.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;Depth buffer.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setRgba(boolean)&quot;&gt;RGBA or color index mode.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAlpha(boolean)&quot;&gt;Alpha channel.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;Accumulation buffer.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;Stencil buffer.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStereo(boolean)&quot;&gt;Stereo buffers.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDirectRendering(boolean)&quot;&gt;Direct rendering.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setOverlay(boolean)&quot;&gt;Presence of an overlay.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setPlane(int)&quot;&gt;The plane of an overlay format.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setSampleBuffers(boolean)&quot;&gt;Multisample buffers.&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also specify preferred bit depths for the depth buffer, alpha buffer, accumulation buffer and the stencil buffer with the functions: &lt;a href=&quot;QGLFormat.html#setDepthBufferSize(int)&quot;&gt;&lt;tt&gt;setDepthBufferSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGLFormat.html#setAccumBufferSize(int)&quot;&gt;&lt;tt&gt;setAccumBufferSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QGLFormat.html#setStencilBufferSize(int)&quot;&gt;&lt;tt&gt;setStencilBufferSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that even if you specify that you prefer a 32 bit depth buffer (e.g&amp;#x2e; with &lt;a href=&quot;QGLFormat.html#setDepthBufferSize(int)&quot;&gt;&lt;tt&gt;setDepthBufferSize&lt;/tt&gt;&lt;/a&gt;(32)), the format that is chosen may not have a 32 bit depth buffer, even if there is a format available with a 32 bit depth buffer. The main reason for this is how the system dependant picking algorithms work on the different platforms, and some format options may have higher precedence than others.&lt;/p&gt;
&lt;p&gt;You create and tell a &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; object what rendering options you want from an OpenGL rendering context.&lt;/p&gt;
&lt;p&gt;OpenGL drivers or accelerated hardware may or may not support advanced features such as alpha channel or stereographic viewing. If you request some features that the driver/hardware does not provide when you create a &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;, you will get a rendering context with the nearest subset of features.&lt;/p&gt;
&lt;p&gt;There are different ways to define the display characteristics of a rendering context. One is to create a &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; and make it the default for the entire application:&lt;/p&gt;
&lt;pre&gt;    QGLFormat fmt;
    fmt.setAlpha(true);
    fmt.setStereo(true);
    QGLFormat::setDefaultFormat(fmt);&lt;/pre&gt;
&lt;p&gt;Or you can specify the desired format when creating an object of your &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; subclass:&lt;/p&gt;
&lt;pre&gt;    QGLFormat fmt;
    fmt.setDoubleBuffer(false);                 &lt;span class=&quot;comment&quot;&gt;// single buffer&lt;/span&gt;
    fmt.setDirectRendering(false);              &lt;span class=&quot;comment&quot;&gt;// software rendering&lt;/span&gt;
    MyGLWidget* myWidget = new MyGLWidget(fmt, ...);&lt;/pre&gt;
&lt;p&gt;After the widget has been created, you can find out which of the requested features the system was able to provide:&lt;/p&gt;
&lt;pre&gt;    QGLFormat fmt;
    fmt.setOverlay(true);
    fmt.setStereo(true);
    MyGLWidget* myWidget = new MyGLWidget(fmt, ...);
    if (!myWidget-&amp;gt;format().stereo()) {
        &lt;span class=&quot;comment&quot;&gt;// ok, goggles off&lt;/span&gt;
        if (!myWidget-&amp;gt;format().hasOverlay()) {
            qFatal(&amp;quot;Cool hardware required&amp;quot;);
        }
    }&lt;/pre&gt;
&lt;div style=&quot;padding: 0.5em; background: #e0e0e0; color: black&quot;&gt;&lt;p&gt;OpenGL is a trademark of Silicon Graphics, Inc. in the United States and other countries.&lt;/p&gt;
&lt;/div&gt;
@see &lt;a href=&quot;QGLContext.html&quot;&gt;&lt;tt&gt;QGLContext&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QGLFormat(com.trolltech.qt.opengl.QGLFormat other)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;other&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QGLFormat()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; object with the factory default settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDoubleBuffer(boolean)&quot;&gt;Double buffer:&lt;/tt&gt;&lt;/a&gt; Enabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;Depth buffer:&lt;/tt&gt;&lt;/a&gt; Enabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setRgba(boolean)&quot;&gt;RGBA:&lt;/tt&gt;&lt;/a&gt; Enabled (i.e&amp;#x2e;, color index disabled).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAlpha(boolean)&quot;&gt;Alpha channel:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;Accumulator buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;Stencil buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStereo(boolean)&quot;&gt;Stereo:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDirectRendering(boolean)&quot;&gt;Direct rendering:&lt;/tt&gt;&lt;/a&gt; Enabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setOverlay(boolean)&quot;&gt;Overlay:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setPlane(int)&quot;&gt;Plane:&lt;/tt&gt;&lt;/a&gt; 0 (i.e&amp;#x2e;, normal plane).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setSampleBuffers(boolean)&quot;&gt;Multisample buffers:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;/ul&gt;
 */"/>
    <method name="public QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions options, int plane)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; object that is a copy of the current &lt;a href=&quot;QGLFormat.html#defaultFormat()&quot;&gt;application default format&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;options&lt;/tt&gt; is not 0, this copy is modified by these format options. The &lt;tt&gt;options&lt;/tt&gt; parameter should be &lt;tt&gt;FormatOption&lt;/tt&gt; values OR'ed together.&lt;/p&gt;
&lt;p&gt;This constructor makes it easy to specify a certain desired format in classes derived from &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;, for example:&lt;/p&gt;
&lt;pre&gt;&lt;span class=&quot;comment&quot;&gt;    // The rendering in MyGLWidget depends on using&lt;/span&gt;
&lt;span class=&quot;comment&quot;&gt;    // stencil buffer and alpha channel&lt;/span&gt;
    MyGLWidget::MyGLWidget(QWidget* parent)
        : QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel), parent)
    {
        if (!format().stencil())
            qWarning(&amp;quot;Could not get stencil buffer; results will be suboptimal&amp;quot;);
        if (!format().alpha())
            qWarning(&amp;quot;Could not get alpha channel; results will be suboptimal&amp;quot;);
        ...
    }&lt;/pre&gt;
&lt;p&gt;Note that there are &lt;tt&gt;FormatOption&lt;/tt&gt; values to turn format settings both on and off, e.g&amp;#x2e; &lt;tt&gt;DepthBuffer&lt;/tt&gt; and &lt;tt&gt;NoDepthBuffer&lt;/tt&gt;, &lt;tt&gt;DirectRendering&lt;/tt&gt; and &lt;tt&gt;IndirectRendering&lt;/tt&gt;, etc.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;plane&lt;/tt&gt; parameter defaults to 0 and is the plane which this format should be associated with. Not all OpenGL implementations supports overlay/underlay rendering planes.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#defaultFormat()&quot;&gt;&lt;tt&gt;defaultFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setOption(com.trolltech.qt.opengl.QGL.FormatOptions)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions options)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;options&lt;/tt&gt;, 0). */"/>
    <method name="public final boolean accum()" doc="/**
&lt;p&gt;Returns true if the accumulation buffer is enabled; otherwise returns false. The accumulation buffer is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;&lt;tt&gt;setAccum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAccumBufferSize(int)&quot;&gt;&lt;tt&gt;setAccumBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int accumBufferSize()" doc="/**
&lt;p&gt;Returns the accumulation buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setAccumBufferSize(int)&quot;&gt;&lt;tt&gt;setAccumBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#accum()&quot;&gt;&lt;tt&gt;accum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;&lt;tt&gt;setAccum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean alpha()" doc="/**
&lt;p&gt;Returns true if the alpha buffer in the framebuffer is enabled; otherwise returns false. The alpha buffer is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setAlpha(boolean)&quot;&gt;&lt;tt&gt;setAlpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int alphaBufferSize()" doc="/**
&lt;p&gt;Returns the alpha buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlpha(boolean)&quot;&gt;&lt;tt&gt;setAlpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int blueBufferSize()" doc="/**
&lt;p&gt;Returns the blue buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setBlueBufferSize(int)&quot;&gt;&lt;tt&gt;setBlueBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean depth()" doc="/**
&lt;p&gt;Returns true if the depth buffer is enabled; otherwise returns false. The depth buffer is enabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;&lt;tt&gt;setDepth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDepthBufferSize(int)&quot;&gt;&lt;tt&gt;setDepthBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int depthBufferSize()" doc="/**
&lt;p&gt;Returns the depth buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;&lt;tt&gt;setDepth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDepthBufferSize(int)&quot;&gt;&lt;tt&gt;setDepthBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean directRendering()" doc="/**
&lt;p&gt;Returns true if direct rendering is enabled; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Direct rendering is enabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setDirectRendering(boolean)&quot;&gt;&lt;tt&gt;setDirectRendering&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean doubleBuffer()" doc="/**
&lt;p&gt;Returns true if double buffering is enabled; otherwise returns false. Double buffering is enabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setDoubleBuffer(boolean)&quot;&gt;&lt;tt&gt;setDoubleBuffer&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int greenBufferSize()" doc="/**
&lt;p&gt;Returns the green buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setGreenBufferSize(int)&quot;&gt;&lt;tt&gt;setGreenBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasOverlay()" doc="/**
&lt;p&gt;Returns true if overlay plane is enabled; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Overlay is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setOverlay(boolean)&quot;&gt;&lt;tt&gt;setOverlay&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int plane()" doc="/**
&lt;p&gt;Returns the plane of this format. The default for normal formats is 0, which means the normal plane. The default for overlay formats is 1, which is the first overlay plane.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setPlane(int)&quot;&gt;&lt;tt&gt;setPlane&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int redBufferSize()" doc="/**
&lt;p&gt;Returns the red buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setRedBufferSize(int)&quot;&gt;&lt;tt&gt;setRedBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean rgba()" doc="/**
&lt;p&gt;Returns true if RGBA color mode is set. Returns false if color index mode is set. The default color mode is RGBA.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setRgba(boolean)&quot;&gt;&lt;tt&gt;setRgba&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean sampleBuffers()" doc="/**
&lt;p&gt;Returns true if multisample buffer support is enabled; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The multisample buffer is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setSampleBuffers(boolean)&quot;&gt;&lt;tt&gt;setSampleBuffers&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int samples()" doc="/**
&lt;p&gt;Returns the number of samples per pixel when multisampling is enabled. By default, the highest number of samples that is available is used.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setSampleBuffers(boolean)&quot;&gt;&lt;tt&gt;setSampleBuffers&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#sampleBuffers()&quot;&gt;&lt;tt&gt;sampleBuffers&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setSamples(int)&quot;&gt;&lt;tt&gt;setSamples&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAccum(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables the accumulation buffer; otherwise disables the accumulation buffer.&lt;/p&gt;
&lt;p&gt;The accumulation buffer is disabled by default.&lt;/p&gt;
&lt;p&gt;The accumulation buffer is used to create blur effects and multiple exposures.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#accum()&quot;&gt;&lt;tt&gt;accum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAccumBufferSize(int)&quot;&gt;&lt;tt&gt;setAccumBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAccumBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred accumulation buffer size, where &lt;tt&gt;size&lt;/tt&gt; is the bit depth for each RGBA component.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#accum()&quot;&gt;&lt;tt&gt;accum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;&lt;tt&gt;setAccum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#accumBufferSize()&quot;&gt;&lt;tt&gt;accumBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAlpha(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables the alpha buffer; otherwise disables the alpha buffer.&lt;/p&gt;
&lt;p&gt;The alpha buffer is disabled by default.&lt;/p&gt;
&lt;p&gt;The alpha buffer is typically used for implementing transparency or translucency. The A in RGBA specifies the transparency of a pixel.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAlphaBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred alpha buffer size to &lt;tt&gt;size&lt;/tt&gt;. This function implicitly enables the alpha channel.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setRedBufferSize(int)&quot;&gt;&lt;tt&gt;setRedBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setGreenBufferSize(int)&quot;&gt;&lt;tt&gt;setGreenBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#alphaBufferSize()&quot;&gt;&lt;tt&gt;alphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBlueBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred blue buffer size to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#blueBufferSize()&quot;&gt;&lt;tt&gt;blueBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setRedBufferSize(int)&quot;&gt;&lt;tt&gt;setRedBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setGreenBufferSize(int)&quot;&gt;&lt;tt&gt;setGreenBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDepth(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables the depth buffer; otherwise disables the depth buffer.&lt;/p&gt;
&lt;p&gt;The depth buffer is enabled by default.&lt;/p&gt;
&lt;p&gt;The purpose of a depth buffer (or Z-buffering) is to remove hidden surfaces. Pixels are assigned Z values based on the distance to the viewer. A pixel with a high Z value is closer to the viewer than a pixel with a low Z value. This information is used to decide whether to draw a pixel or not.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDepthBufferSize(int)&quot;&gt;&lt;tt&gt;setDepthBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDepthBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred depth buffer size to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#depthBufferSize()&quot;&gt;&lt;tt&gt;depthBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;&lt;tt&gt;setDepth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDirectRendering(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables direct rendering; otherwise disables direct rendering.&lt;/p&gt;
&lt;p&gt;Direct rendering is enabled by default.&lt;/p&gt;
&lt;p&gt;Enabling this option will make OpenGL bypass the underlying window system and render directly from hardware to the screen, if this is supported by the system.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#directRendering()&quot;&gt;&lt;tt&gt;directRendering&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDoubleBuffer(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true sets double buffering; otherwise sets single buffering.&lt;/p&gt;
&lt;p&gt;Double buffering is enabled by default.&lt;/p&gt;
&lt;p&gt;Double buffering is a technique where graphics are rendered on an off-screen buffer and not directly to the screen. When the drawing has been completed, the program calls a swapBuffers() function to exchange the screen contents with the buffer. The result is flicker-free drawing and often better performance.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#doubleBuffer()&quot;&gt;&lt;tt&gt;doubleBuffer&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QGLContext::swapBuffers&lt;/tt&gt;
@see &lt;tt&gt;QGLWidget::swapBuffers&lt;/tt&gt; */"/>
    <method name="public final void setGreenBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred green buffer size to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#greenBufferSize()&quot;&gt;&lt;tt&gt;greenBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setRedBufferSize(int)&quot;&gt;&lt;tt&gt;setRedBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setBlueBufferSize(int)&quot;&gt;&lt;tt&gt;setBlueBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOption(com.trolltech.qt.opengl.QGL.FormatOptions opt)" doc="/**
&lt;p&gt;Sets the format option to &lt;tt&gt;opt&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#testOption(com.trolltech.qt.opengl.QGL.FormatOptions)&quot;&gt;&lt;tt&gt;testOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOverlay(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables an overlay plane; otherwise disables the overlay plane.&lt;/p&gt;
&lt;p&gt;Enabling the overlay plane will cause &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; to create an additional context in an overlay plane. See the &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; documentation for further information.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#hasOverlay()&quot;&gt;&lt;tt&gt;hasOverlay&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPlane(int plane)" doc="/**
&lt;p&gt;Sets the requested plane to &lt;tt&gt;plane&lt;/tt&gt;. 0 is the normal plane, 1 is the first overlay plane, 2 is the second overlay plane, etc.; -1, -2, etc. are underlay planes.&lt;/p&gt;
&lt;p&gt;Note that in contrast to other format specifications, the plane specifications will be matched exactly. This means that if you specify a plane that the underlying OpenGL system cannot provide, an invalid&lt;/tt&gt; &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; will be created.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#plane()&quot;&gt;&lt;tt&gt;plane&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRedBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred red buffer size to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#redBufferSize()&quot;&gt;&lt;tt&gt;redBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setGreenBufferSize(int)&quot;&gt;&lt;tt&gt;setGreenBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setBlueBufferSize(int)&quot;&gt;&lt;tt&gt;setBlueBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setAlphaBufferSize(int)&quot;&gt;&lt;tt&gt;setAlphaBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRgba(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true sets RGBA mode. If &lt;tt&gt;enable&lt;/tt&gt; is false sets color index mode.&lt;/p&gt;
&lt;p&gt;The default color mode is RGBA.&lt;/p&gt;
&lt;p&gt;RGBA is the preferred mode for most OpenGL applications. In RGBA color mode you specify colors as red + green + blue + alpha quadruplets.&lt;/p&gt;
&lt;p&gt;In color index mode you specify an index into a color lookup table.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#rgba()&quot;&gt;&lt;tt&gt;rgba&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSampleBuffers(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true, a GL context with multisample buffer support is picked; otherwise ignored.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#sampleBuffers()&quot;&gt;&lt;tt&gt;sampleBuffers&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setSamples(int)&quot;&gt;&lt;tt&gt;setSamples&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#samples()&quot;&gt;&lt;tt&gt;samples&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSamples(int numSamples)" doc="/**
&lt;p&gt;Set the preferred number of samples per pixel when multisampling is enabled to &lt;tt&gt;numSamples&lt;/tt&gt;. By default, the highest number of samples available is used.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setSampleBuffers(boolean)&quot;&gt;&lt;tt&gt;setSampleBuffers&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#sampleBuffers()&quot;&gt;&lt;tt&gt;sampleBuffers&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#samples()&quot;&gt;&lt;tt&gt;samples&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStencil(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables the stencil buffer; otherwise disables the stencil buffer.&lt;/p&gt;
&lt;p&gt;The stencil buffer is disabled by default.&lt;/p&gt;
&lt;p&gt;The stencil buffer masks certain parts of the drawing area so that masked parts are not drawn on.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#stencil()&quot;&gt;&lt;tt&gt;stencil&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setStencilBufferSize(int)&quot;&gt;&lt;tt&gt;setStencilBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStencilBufferSize(int size)" doc="/**
&lt;p&gt;Set the preferred stencil buffer size to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#stencilBufferSize()&quot;&gt;&lt;tt&gt;stencilBufferSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;&lt;tt&gt;setStencil&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#stencil()&quot;&gt;&lt;tt&gt;stencil&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStereo(boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true enables stereo buffering; otherwise disables stereo buffering.&lt;/p&gt;
&lt;p&gt;Stereo buffering is disabled by default.&lt;/p&gt;
&lt;p&gt;Stereo buffering provides extra color buffers to generate left-eye and right-eye images.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#stereo()&quot;&gt;&lt;tt&gt;stereo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSwapInterval(int interval)" doc="/**
&lt;p&gt;Set the preferred swap interval. This can be used to sync the GL drawing into a system window to the vertical refresh of the screen. Setting an &lt;tt&gt;interval&lt;/tt&gt; value of 0 will turn the vertical refresh syncing off, any value higher than 0 will turn the vertical syncing on.&lt;/p&gt;
&lt;p&gt;Under Windows, where the &lt;tt&gt;WGL_EXT_swap_control&lt;/tt&gt; extension is used, the &lt;tt&gt;interval&lt;/tt&gt; parameter can be used to set the minimum number of video frames that are displayed before a buffer swap will occur. In effect, setting the &lt;tt&gt;interval&lt;/tt&gt; to 10, means there will be 10 vertical retraces between every buffer swap.&lt;/p&gt;
&lt;p&gt;Note that setting the swap interval is only supported under Windows and on Mac OS X. Under Windows the &lt;tt&gt;WGL_EXT_swap_control&lt;/tt&gt; extension has to be present.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#swapInterval()&quot;&gt;&lt;tt&gt;swapInterval&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean stencil()" doc="/**
&lt;p&gt;Returns true if the stencil buffer is enabled; otherwise returns false. The stencil buffer is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;&lt;tt&gt;setStencil&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setStencilBufferSize(int)&quot;&gt;&lt;tt&gt;setStencilBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int stencilBufferSize()" doc="/**
&lt;p&gt;Returns the stencil buffer size.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#stencil()&quot;&gt;&lt;tt&gt;stencil&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;&lt;tt&gt;setStencil&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setStencilBufferSize(int)&quot;&gt;&lt;tt&gt;setStencilBufferSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean stereo()" doc="/**
&lt;p&gt;Returns true if stereo buffering is enabled; otherwise returns false. Stereo buffering is disabled by default.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setStereo(boolean)&quot;&gt;&lt;tt&gt;setStereo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int swapInterval()" doc="/**
&lt;p&gt;Returns the currently set swap interval. -1 is returned if setting the swap interval isn't supported in the system GL implementation (e.g&amp;#x2e; under X11).&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setSwapInterval(int)&quot;&gt;&lt;tt&gt;setSwapInterval&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean testOption(com.trolltech.qt.opengl.QGL.FormatOptions opt)" doc="/**
&lt;p&gt;Returns true if format option &lt;tt&gt;opt&lt;/tt&gt; is set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setOption(com.trolltech.qt.opengl.QGL.FormatOptions)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.opengl.QGLFormat defaultFormat()" doc="/**
&lt;p&gt;Returns the default &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; for the application. All QGLWidgets that are created use this format unless another format is specified, e.g&amp;#x2e; when they are constructed.&lt;/p&gt;
&lt;p&gt;If no special default format has been set using &lt;a href=&quot;QGLFormat.html#setDefaultFormat(com.trolltech.qt.opengl.QGLFormat)&quot;&gt;&lt;tt&gt;setDefaultFormat&lt;/tt&gt;&lt;/a&gt;, the default format is the same as that created with &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#setDefaultFormat(com.trolltech.qt.opengl.QGLFormat)&quot;&gt;&lt;tt&gt;setDefaultFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.opengl.QGLFormat defaultOverlayFormat()" doc="/**
&lt;p&gt;Returns the default &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; for overlay contexts.&lt;/p&gt;
&lt;p&gt;The factory default overlay format is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDoubleBuffer(boolean)&quot;&gt;Double buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDepth(boolean)&quot;&gt;Depth buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setRgba(boolean)&quot;&gt;RGBA:&lt;/tt&gt;&lt;/a&gt; Disabled (i.e&amp;#x2e;, color index enabled).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAlpha(boolean)&quot;&gt;Alpha channel:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setAccum(boolean)&quot;&gt;Accumulator buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStencil(boolean)&quot;&gt;Stencil buffer:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setStereo(boolean)&quot;&gt;Stereo:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setDirectRendering(boolean)&quot;&gt;Direct rendering:&lt;/tt&gt;&lt;/a&gt; Enabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setOverlay(boolean)&quot;&gt;Overlay:&lt;/tt&gt;&lt;/a&gt; Disabled.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QGLFormat.html#setPlane(int)&quot;&gt;Plane:&lt;/tt&gt;&lt;/a&gt; 1 (i.e&amp;#x2e;, first overlay plane).&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QGLFormat.html#setDefaultOverlayFormat(com.trolltech.qt.opengl.QGLFormat)&quot;&gt;&lt;tt&gt;setDefaultOverlayFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#setDefaultFormat(com.trolltech.qt.opengl.QGLFormat)&quot;&gt;&lt;tt&gt;setDefaultFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean hasOpenGL()" doc="/**
&lt;p&gt;Returns true if the window system has any OpenGL support; otherwise returns false.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function must not be called until the &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object has been created.&lt;/p&gt;
 */"/>
    <method name="public native static boolean hasOpenGLOverlays()" doc="/**
&lt;p&gt;Returns true if the window system supports OpenGL overlays; otherwise returns false.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function must not be called until the &lt;a href=&quot;%2E%2E/gui/QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt; object has been created.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.opengl.QGLFormat.OpenGLVersionFlags openGLVersionFlags()" doc="/**
&lt;p&gt;Identifies, at runtime, which OpenGL versions that are supported by the current platform.&lt;/p&gt;
&lt;p&gt;Note that if OpenGL version 1.5 is supported, its predecessors (i.e&amp;#x2e;, version 1.4 and lower) are also supported. To identify the support of a particular feature, like multi texturing, test for the version in which the feature was first introduced (i.e&amp;#x2e;, version 1.3 in the case of multi texturing) to adapt to the largest possible group of runtime platforms.&lt;/p&gt;
&lt;p&gt;This function needs a valid current OpenGL context to work; otherwise it will return &lt;a href=&quot;QGLFormat.html#OpenGLVersionFlag-enum&quot;&gt;&lt;tt&gt;OpenGL_Version_None&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#hasOpenGL()&quot;&gt;&lt;tt&gt;hasOpenGL&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGLFormat.html#hasOpenGLOverlays()&quot;&gt;&lt;tt&gt;hasOpenGLOverlays&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setDefaultFormat(com.trolltech.qt.opengl.QGLFormat f)" doc="/**
&lt;p&gt;Sets a new default &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; for the application to &lt;tt&gt;f&lt;/tt&gt;. For example, to set single buffering as the default instead of double buffering, your main() might contain code like this:&lt;/p&gt;
&lt;pre&gt;    QApplication a(argc, argv);
    QGLFormat f;
    f.setDoubleBuffer(false);
    QGLFormat::setDefaultFormat(f);&lt;/pre&gt;

@see &lt;a href=&quot;QGLFormat.html#defaultFormat()&quot;&gt;&lt;tt&gt;defaultFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setDefaultOverlayFormat(com.trolltech.qt.opengl.QGLFormat f)" doc="/**
&lt;p&gt;Sets a new default &lt;a href=&quot;QGLFormat.html#QGLFormat(com.trolltech.qt.opengl.QGL.FormatOptions, int)&quot;&gt;&lt;tt&gt;QGLFormat&lt;/tt&gt;&lt;/a&gt; for overlay contexts to &lt;tt&gt;f&lt;/tt&gt;. This format is used whenever a &lt;a href=&quot;QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt; is created with a format that &lt;a href=&quot;QGLFormat.html#hasOverlay()&quot;&gt;&lt;tt&gt;hasOverlay&lt;/tt&gt;&lt;/a&gt; enabled.&lt;/p&gt;
&lt;p&gt;For example, to get a double buffered overlay context (if available), use code like this:&lt;/p&gt;
&lt;pre&gt;    QGLFormat f = QGLFormat::defaultOverlayFormat();
    f.setDoubleBuffer(true);
    QGLFormat::setDefaultOverlayFormat(f);&lt;/pre&gt;
&lt;p&gt;As usual, you can find out after widget creation whether the underlying OpenGL system was able to provide the requested specification:&lt;/p&gt;
&lt;pre&gt;&lt;span class=&quot;comment&quot;&gt;    // ...continued from above&lt;/span&gt;
    MyGLWidget* myWidget = new MyGLWidget(QGLFormat(QGL::HasOverlay), ...);
    if (myWidget-&amp;gt;format().hasOverlay()) {
        &lt;span class=&quot;comment&quot;&gt;// Yes, we got an overlay, let's check _its_ format:&lt;/span&gt;
        QGLContext* olContext = myWidget-&amp;gt;overlayContext();
        if (olContext-&amp;gt;format().doubleBuffer())
            ; &lt;span class=&quot;comment&quot;&gt;// yes, we got a double buffered overlay&lt;/span&gt;
        else
            ; &lt;span class=&quot;comment&quot;&gt;// no, only single buffered overlays are available&lt;/span&gt;
    }&lt;/pre&gt;

@see &lt;a href=&quot;QGLFormat.html#defaultOverlayFormat()&quot;&gt;&lt;tt&gt;defaultOverlayFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="OpenGLVersionFlag" doc="/**
&lt;p&gt;This enum describes the various OpenGL versions that are recognized by Qt. Use the QGLFormat::openGLVersionFlags() function to identify which versions that are supported at runtime.&lt;/p&gt;
&lt;p&gt;See also &lt;a href=&quot;http://www.opengl.org&quot;&gt;http://www.opengl.org&lt;/tt&gt;&lt;/a&gt; for more information about the different revisions of OpenGL.&lt;/p&gt;

@see &lt;a href=&quot;QGLFormat.html#openGLVersionFlags()&quot;&gt;&lt;tt&gt;openGLVersionFlags&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="OpenGL_Version_None" doc="/**
&lt;p&gt;If no OpenGL is present or if no OpenGL context is current.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_1_1" doc="/**
&lt;p&gt;OpenGL version 1.1 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_1_2" doc="/**
&lt;p&gt;OpenGL version 1.2 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_1_3" doc="/**
&lt;p&gt;OpenGL version 1.3 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_1_4" doc="/**
&lt;p&gt;OpenGL version 1.4 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_1_5" doc="/**
&lt;p&gt;OpenGL version 1.5 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_2_0" doc="/**
&lt;p&gt;OpenGL version 2.0 or higher is present. Note that version 2.0 supports all the functionality of version 1.5&amp;#x2e;&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_Version_2_1" doc="/**
&lt;p&gt;OpenGL version 2.1 or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_ES_Common_Version_1_0" doc="/**
&lt;p&gt;OpenGL ES version 1.0 Common or higher is present. The Common profile supports all the features of Common Lite.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_ES_CommonLite_Version_1_0" doc="/**
&lt;p&gt;OpenGL ES version 1.0 Common Lite or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_ES_Common_Version_1_1" doc="/**
&lt;p&gt;OpenGL ES version 1.1 Common or higher is present. The Common profile supports all the features of Common Lite.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_ES_CommonLite_Version_1_1" doc="/**
&lt;p&gt;OpenGL ES version 1.1 Common Lite or higher is present.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGL_ES_Version_2_0" doc="/**
&lt;p&gt;OpenGL ES version 2.0 or higher is present. Note that OpenGL ES version 2.0 does not support all the features of OpenGL ES 1.x&amp;#x2e; So if &lt;a href=&quot;QGLFormat.html#OpenGLVersionFlag-enum&quot;&gt;&lt;tt&gt;OpenGL_ES_Version_2_0&lt;/tt&gt;&lt;/a&gt; is returned, none of the ES 1.x flags are returned.&lt;/p&gt;
 */"/>
</enum>
</class>