1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/opengl/qgl.cpp:2250 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>Qt OpenGL 3D Graphics</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Qt OpenGL 3D Graphics</h1>
|
---|
33 |
|
---|
34 |
|
---|
35 | <p>
|
---|
36 | <p>
|
---|
37 | <p> <h2> Introduction
|
---|
38 | </h2>
|
---|
39 | <a name="1"></a><p> OpenGL is a standard API for rendering 3D graphics.
|
---|
40 | <p> OpenGL only deals with 3D rendering and provides little or no support
|
---|
41 | for GUI programming issues. The user interface for an
|
---|
42 | OpenGL<sup>*</sup> application must be created with another toolkit,
|
---|
43 | such as <a href="motif-extension.html#Motif">Motif</a> on the X platform, Microsoft Foundation Classes (MFC)
|
---|
44 | under Windows, or Qt on <em>both</em> platforms.
|
---|
45 | <p> The Qt OpenGL module makes it easy to use OpenGL in Qt applications.
|
---|
46 | It provides an OpenGL widget class that can be used just like any
|
---|
47 | other Qt widget, except that it opens an OpenGL display buffer where
|
---|
48 | you can use the OpenGL API to render the contents.
|
---|
49 | <p> The Qt OpenGL module is implemented as a platform-independent Qt/C++
|
---|
50 | wrapper around the platform-dependent GLX, WGL, or AGL C APIs. The
|
---|
51 | functionality provided is very similar to Mark Kilgard's GLUT library,
|
---|
52 | but with much more non-OpenGL-specific GUI functionality, i.e. the
|
---|
53 | whole Qt API.
|
---|
54 | <p> <h2> Installation
|
---|
55 | </h2>
|
---|
56 | <a name="2"></a><p> When you install Qt for X11, the configure script will autodetect if
|
---|
57 | OpenGL headers and libraries are installed on your system, and if so,
|
---|
58 | it will include the Qt OpenGL module in the Qt library. (If your
|
---|
59 | OpenGL headers or libraries are placed in a non-standard directory,
|
---|
60 | you may need to change the QMAKE_INCDIR_OPENGL and/or
|
---|
61 | QMAKE_LIBDIR_OPENGL in the config file for your system). Some
|
---|
62 | configurations require threading to be enabled for OpenGL, so if
|
---|
63 | OpenGL is not detected, try <tt>configure -thread</tt>.
|
---|
64 | <p> When you install Qt for Windows, the Qt OpenGL module is always
|
---|
65 | included.
|
---|
66 | <p> The Qt OpenGL module is not licensed for use with the Qt Professional
|
---|
67 | Edition. Consider upgrading to the Qt Enterprise Edition if you
|
---|
68 | require OpenGL support.
|
---|
69 | <p> Note about using Mesa on X11: Mesa versions earlier than 3.1 would use
|
---|
70 | the name "MesaGL" and "MesaGLU" for the libraries, instead of "GL" and
|
---|
71 | "GLU". If you want to use a pre-3.1 version of Mesa, you must change
|
---|
72 | the Makefiles to use these library names instead. The easiest way to
|
---|
73 | do this is to edit the QMAKE_LIBS_OPENGL line in the config file you
|
---|
74 | are using, changing "-lGL -lGLU" to "-lMesaGL -lMesaGLU"; then run
|
---|
75 | "configure" again.
|
---|
76 | <p> <h2> The <a href="qgl.html">QGL</a> Classes
|
---|
77 | </h2>
|
---|
78 | <a name="3"></a><p> The OpenGL support classes in Qt are:
|
---|
79 | <ul>
|
---|
80 | <li> <a href="qglwidget.html">QGLWidget</a>: An easy-to-use Qt
|
---|
81 | widget for rendering OpenGL scenes.
|
---|
82 | <li> <a href="qglcontext.html">QGLContext</a>: Encapsulates an OpenGL rendering context.
|
---|
83 | <li> <a href="qglformat.html">QGLFormat</a>: Specifies the
|
---|
84 | display format of a rendering context.
|
---|
85 | <li> <a href="qglcolormap.html">QGLColormap</a>: Handles indexed
|
---|
86 | colormaps in GL-index mode.
|
---|
87 | </ul>
|
---|
88 | <p> Many applications only need the high-level <a href="qglwidget.html">QGLWidget</a> class. The other
|
---|
89 | QGL classes provide advanced features. X11 users might like to read
|
---|
90 | the notes on <a href="opengl-x11-overlays.html">overlays</a>.
|
---|
91 | <p> See also the <a href="opengl-examples.html">OpenGL examples</a>.
|
---|
92 | <p> The QGL documentation assumes that you are familiar with OpenGL
|
---|
93 | programming. If you're new to the subject a good starting point is
|
---|
94 | <a href="http://www.opengl.org/">http://www.opengl.org/</a>.
|
---|
95 | <p> <sup>*</sup> OpenGL is a trademark of Silicon Graphics, Inc. in the
|
---|
96 | United States and other countries.
|
---|
97 | <p>
|
---|
98 | <!-- eof -->
|
---|
99 | <p><address><hr><div align=center>
|
---|
100 | <table width=100% cellspacing=0 border=0><tr>
|
---|
101 | <td>Copyright © 2007
|
---|
102 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
103 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
104 | </table></div></address></body>
|
---|
105 | </html>
|
---|