⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opengl.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit -  Qt OpenGL 3D Graphics</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><p><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align="center"> Qt OpenGL 3D Graphics</h1><br clear="all"><h2>Introduction</h2><p>OpenGL is a standard API for rendering 3D graphics.<p>OpenGL only deals with 3D rendering and provides little or no supportfor GUI programming issues. The user interface for an OpenGLapplication must be created with another toolkit, such as Motif on theX platform, Microsoft Foundation Classes (MFC) under Windows - or Qton <i>both</i> platforms.<p>The Qt OpenGL module makes it easy to use OpenGL in Qtapplications.  It provides an OpenGL widget class that can be usedjust like any other Qt widget, only that it opens an OpenGL displaybuffer where you can use the OpenGL API to render the contents.<p>The Qt OpenGL module is implemented as a platform-independentQt/C++ wrapper around the platform-dependent GLX and WGL C APIs. Theprovided functionality is very similar to Mark Kilgard's GLUT library,but with much more non-OpenGL-specific GUI functionality: the whole QtAPI.<p><h2>Installation</h2><p>When you install Qt for X11, the configure script will autodetect ifOpenGL headers and libraries are installed on your system, and if so, itwill include the Qt OpenGL module in the Qt library. (If your OpenGLheaders or libraries are placed in a non-standard directory, you may needto change the SYSCONF_CXXFLAGS_OPENGL and/or SYSCONF_LFLAGS_OPENGL in theconfig file for your system).<p>When you install Qt for Windows, the Qt OpenGL module is always included.<p>The Qt OpenGL module is not licensed for use with the Qt ProfessionalEdition. Consider upgrading to the Qt Enterprise Edition if you requireOpenGL support.<p>Note about using Mesa on X11: Mesa versions earlier than 3.1 would use thename "MesaGL" and "MesaGLU" for the libraries, instead of "GL" and"GLU". If you want to use a pre-3.1 version of Mesa, you must changethe Makefiles to use these library names instead. The easiest way todo this edit the SYSCONF_LIBS_OPENGL line in the config file you areusing, changing "-lGL -lGLU" to "-lMesaGL -lMesaGLU"; then run "configure"again.<p><h2>The QGL Classes</h2><p>The OpenGL support classes in Qt are:<ul><li> <strong><a href="qglwidget.html">QGLWidget</a>:</strong> An easy-to-use Qt  widget for rendering OpenGL scenes.<li> <strong><a href="qglcontext.html">QGLContext</a>:</strong> Encapsulates an OpenGL rendering context.<li> <strong><a href="qglformat.html">QGLFormat</a>:</strong> Specifies thedisplay format of a rendering context.</ul><p>Many applications need only the high-level QGLWidget class. The other QGLclasses provide advanced features.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -