Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 702

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QGL Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QGL Class Reference<br /><sup><sup>[<a href="qtopengl.html">QtOpenGL</a> module]</sup></sup></h1><p>The QGL namespace specifies miscellaneous identifiers used in
the Qt OpenGL module. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qgl.html#FormatOption-enum">FormatOption</a></b> { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, ..., NoDeprecatedFunctions }</li><li><div class="fn" />class <b><a href="qgl-formatoptions.html">FormatOptions</a></b></li></ul><h3>Static Methods</h3><ul><li><div class="fn" /><b><a href="qgl.html#setPreferredPaintEngine">setPreferredPaintEngine</a></b> (QPaintEngine.Type&#160;<i>engineType</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QGL namespace specifies miscellaneous identifiers used in
the Qt OpenGL module.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="FormatOption-enum" />QGL.FormatOption</h3><p>This enum specifies the format options that can be used to
configure an OpenGL context. These are set using <a href="qglformat.html#setOption">QGLFormat.setOption</a>().</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QGL.DoubleBuffer</tt></td>
<td class="topAlign"><tt>0x0001</tt></td>
<td class="topAlign">Specifies the use of double buffering.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.DepthBuffer</tt></td>
<td class="topAlign"><tt>0x0002</tt></td>
<td class="topAlign">Enables the use of a depth buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.Rgba</tt></td>
<td class="topAlign"><tt>0x0004</tt></td>
<td class="topAlign">Specifies that the context should use RGBA as
its pixel format.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.AlphaChannel</tt></td>
<td class="topAlign"><tt>0x0008</tt></td>
<td class="topAlign">Enables the use of an alpha channel.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.AccumBuffer</tt></td>
<td class="topAlign"><tt>0x0010</tt></td>
<td class="topAlign">Enables the use of an accumulation
buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.StencilBuffer</tt></td>
<td class="topAlign"><tt>0x0020</tt></td>
<td class="topAlign">Enables the use of a stencil buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.StereoBuffers</tt></td>
<td class="topAlign"><tt>0x0040</tt></td>
<td class="topAlign">Enables the use of a stereo buffers for use
with visualization hardware.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.DirectRendering</tt></td>
<td class="topAlign"><tt>0x0080</tt></td>
<td class="topAlign">Specifies that the context is used for direct
rendering to a display.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.HasOverlay</tt></td>
<td class="topAlign"><tt>0x0100</tt></td>
<td class="topAlign">Enables the use of an overlay.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.SampleBuffers</tt></td>
<td class="topAlign"><tt>0x0200</tt></td>
<td class="topAlign">Enables the use of sample buffers.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.DeprecatedFunctions</tt></td>
<td class="topAlign"><tt>0x0400</tt></td>
<td class="topAlign">Enables the use of deprecated functionality
for OpenGL 3.x contexts. A context with deprecated functionality
enabled is called a full context in the OpenGL specification.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.SingleBuffer</tt></td>
<td class="topAlign"><tt>DoubleBuffer&lt;&lt;16</tt></td>
<td class="topAlign">Specifies the use of a single buffer, as
opposed to double buffers.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoDepthBuffer</tt></td>
<td class="topAlign"><tt>DepthBuffer&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of a depth buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.ColorIndex</tt></td>
<td class="topAlign"><tt>Rgba&lt;&lt;16</tt></td>
<td class="topAlign">Specifies that the context should use a color
index as its pixel format.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoAlphaChannel</tt></td>
<td class="topAlign"><tt>AlphaChannel&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of an alpha channel.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoAccumBuffer</tt></td>
<td class="topAlign"><tt>AccumBuffer&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of an accumulation
buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoStencilBuffer</tt></td>
<td class="topAlign"><tt>StencilBuffer&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of a stencil buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoStereoBuffers</tt></td>
<td class="topAlign"><tt>StereoBuffers&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of stereo buffers.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.IndirectRendering</tt></td>
<td class="topAlign"><tt>DirectRendering&lt;&lt;16</tt></td>
<td class="topAlign">Specifies that the context is used for
indirect rendering to a buffer.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoOverlay</tt></td>
<td class="topAlign"><tt>HasOverlay&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of an overlay.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoSampleBuffers</tt></td>
<td class="topAlign"><tt>SampleBuffers&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of sample buffers.</td>
</tr>
<tr>
<td class="topAlign"><tt>QGL.NoDeprecatedFunctions</tt></td>
<td class="topAlign"><tt>DeprecatedFunctions&lt;&lt;16</tt></td>
<td class="topAlign">Disables the use of deprecated functionality
for OpenGL 3.x contexts. A context with deprecated functionality
disabled is called a forward compatible context in the OpenGL
specification.</td>
</tr>
</table>
<p>The FormatOptions type is a typedef for <a href="qflags.html">QFlags</a>&lt;FormatOption&gt;. It stores an OR
combination of FormatOption values.</p>
<p><b>See also</b> <a href="opengl-samplebuffers.html">Sample
Buffers Example</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="setPreferredPaintEngine" />QGL.setPreferredPaintEngine (<a href="qpaintengine.html#Type-enum">QPaintEngine.Type</a>&#160;<i>engineType</i>)</h3><p>Sets the preferred OpenGL paint engine that is used to draw onto
<a href="qglwidget.html">QGLWidget</a>, <a href="qglpixelbuffer.html">QGLPixelBuffer</a> and <a href="qglframebufferobject.html">QGLFramebufferObject</a> targets with
<a href="qpainter.html">QPainter</a> in Qt.</p>
<p>The <i>engineType</i> parameter specifies which of the GL
engines to use. Only <tt>QPaintEngine.OpenGL</tt> and
<tt>QPaintEngine.OpenGL2</tt> are valid parameters to this
function. All other values are ignored.</p>
<p>By default, the <tt>QPaintEngine.OpenGL2</tt> engine is used if
GL/GLES version 2.0 is available, otherwise
<tt>QPaintEngine.OpenGL</tt> is used.</p>
<p><b>Warning:</b> This function must be called before the <a href="qapplication.html">QApplication</a> constructor is called.</p>
<p>This function was introduced in Qt 4.6.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>