~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qgl.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/opengl/qgl.cpp -->
 
5
<!-- qgl.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QGL Namespace Reference</title>
 
7
  <title>Qt 4.6: QGL Namespace Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
11
11
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
12
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QGL Namespace Reference<br /><span class="small-subtitle">[<a href="qtopengl.html">QtOpenGL</a> module]</span>
 
13
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
14
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
15
</tr></table><h1 class="title">QGL Namespace Reference<br /><span class="small-subtitle">[<a href="qtopengl.html">QtOpenGL</a> module]</span>
16
16
</h1>
17
17
<p>The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module. <a href="#details">More...</a></p>
18
18
<pre> #include &lt;QGL&gt;</pre><ul>
19
19
</ul>
 
20
<hr />
20
21
<a name="types"></a>
21
 
<h3>Types</h3>
22
 
<ul>
23
 
<li><div class="fn"></div>enum <b><a href="qgl.html#FormatOption-enum">FormatOption</a></b> { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, ..., NoSampleBuffers }</li>
24
 
<li><div class="fn"></div>flags <b><a href="qgl.html#FormatOption-enum">FormatOptions</a></b></li>
25
 
</ul>
 
22
<h2>Types</h2>
 
23
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
24
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qgl.html#FormatOption-enum">FormatOption</a></b> { DoubleBuffer, DepthBuffer, Rgba, AlphaChannel, ..., NoSampleBuffers }</td></tr>
 
25
<tr><td class="memItemLeft" align="right" valign="top">flags </td><td class="memItemRight" valign="bottom"><b><a href="qgl.html#FormatOption-enum">FormatOptions</a></b></td></tr>
 
26
</table>
 
27
<hr />
 
28
<a name="functions"></a>
 
29
<h2>Functions</h2>
 
30
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
31
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgl.html#setPreferredPaintEngine">setPreferredPaintEngine</a></b> ( QPaintEngine::Type <i>engineType</i> )</td></tr>
 
32
</table>
26
33
<a name="details"></a>
27
34
<hr />
28
35
<h2>Detailed Description</h2>
29
36
<p>The QGL namespace specifies miscellaneous identifiers used in the Qt OpenGL module.</p>
30
37
<hr />
31
38
<h2>Type Documentation</h2>
 
39
<a name="//apple_ref/cpp/tag/QGL/FormatOption" />
 
40
<a name="//apple_ref/cpp/econst/QGL/DoubleBuffer" />
 
41
<a name="//apple_ref/cpp/econst/QGL/DepthBuffer" />
 
42
<a name="//apple_ref/cpp/econst/QGL/Rgba" />
 
43
<a name="//apple_ref/cpp/econst/QGL/AlphaChannel" />
 
44
<a name="//apple_ref/cpp/econst/QGL/AccumBuffer" />
 
45
<a name="//apple_ref/cpp/econst/QGL/StencilBuffer" />
 
46
<a name="//apple_ref/cpp/econst/QGL/StereoBuffers" />
 
47
<a name="//apple_ref/cpp/econst/QGL/DirectRendering" />
 
48
<a name="//apple_ref/cpp/econst/QGL/HasOverlay" />
 
49
<a name="//apple_ref/cpp/econst/QGL/SampleBuffers" />
 
50
<a name="//apple_ref/cpp/econst/QGL/SingleBuffer" />
 
51
<a name="//apple_ref/cpp/econst/QGL/NoDepthBuffer" />
 
52
<a name="//apple_ref/cpp/econst/QGL/ColorIndex" />
 
53
<a name="//apple_ref/cpp/econst/QGL/NoAlphaChannel" />
 
54
<a name="//apple_ref/cpp/econst/QGL/NoAccumBuffer" />
 
55
<a name="//apple_ref/cpp/econst/QGL/NoStencilBuffer" />
 
56
<a name="//apple_ref/cpp/econst/QGL/NoStereoBuffers" />
 
57
<a name="//apple_ref/cpp/econst/QGL/IndirectRendering" />
 
58
<a name="//apple_ref/cpp/econst/QGL/NoOverlay" />
 
59
<a name="//apple_ref/cpp/econst/QGL/NoSampleBuffers" />
 
60
<a name="//apple_ref/cpp/tdef/QGL/FormatOptions" />
32
61
<h3 class="flags"><a name="FormatOption-enum"></a>enum QGL::FormatOption<br />flags QGL::FormatOptions</h3>
33
62
<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>
34
 
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
 
63
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
35
64
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
36
65
<tr><td valign="top"><tt>QGL::DoubleBuffer</tt></td><td align="center" valign="top"><tt>0x0001</tt></td><td valign="top">Specifies the use of double buffering.</td></tr>
37
66
<tr><td valign="top"><tt>QGL::DepthBuffer</tt></td><td align="center" valign="top"><tt>0x0002</tt></td><td valign="top">Enables the use of a depth buffer.</td></tr>
56
85
</table></p>
57
86
<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>
58
87
<p>See also <a href="opengl-samplebuffers.html">Sample Buffers Example</a>.</p>
 
88
<hr />
 
89
<h2>Function Documentation</h2>
 
90
<a name="//apple_ref/cpp/instm/QGL/setPreferredPaintEngine" />
 
91
<h3 class="fn"><a name="setPreferredPaintEngine"></a>void QGL::setPreferredPaintEngine ( <a href="qpaintengine.html#Type-enum">QPaintEngine::Type</a> <i>engineType</i> )</h3>
 
92
<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>
 
93
<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>
 
94
<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>
 
95
<p><b>Warning:</b> This function must be called before the <a href="qapplication.html">QApplication</a> constructor is called.</p>
 
96
<p>This function was introduced in Qt 4.6.</p>
59
97
<p /><address><hr /><div align="center">
60
98
<table width="100%" cellspacing="0" border="0"><tr class="address">
61
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
62
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
63
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
64
 
</tr></table></div></address></body>
 
99
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
100
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
101
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
102
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
65
103
</html>