diff options
Diffstat (limited to 'doc/man/man3/tqglformat.3qt')
| -rw-r--r-- | doc/man/man3/tqglformat.3qt | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/man/man3/tqglformat.3qt b/doc/man/man3/tqglformat.3qt index b3b54fec7..2a6d008c0 100644 --- a/doc/man/man3/tqglformat.3qt +++ b/doc/man/man3/tqglformat.3qt @@ -144,9 +144,9 @@ There are different ways to define the display characteristics of a rendering co .br QGLFormat f; .br - f.setAlpha( TRUE ); + f.setAlpha( true ); .br - f.setStereo( TRUE ); + f.setStereo( true ); .br QGLFormat::setDefaultFormat( f ); .br @@ -158,9 +158,9 @@ Or you can specify the desired format when creating an object of your QGLWidget .br QGLFormat f; .br - f.setDoubleBuffer( FALSE ); // single buffer + f.setDoubleBuffer( false ); // single buffer .br - f.setDirectRendering( FALSE ); // software rendering + f.setDirectRendering( false ); // software rendering .br MyGLWidget* myWidget = new MyGLWidget( f, ... ); .br @@ -172,9 +172,9 @@ After the widget has been created, you can find out which of the requested featu .br QGLFormat f; .br - f.setOverlay( TRUE ); + f.setOverlay( true ); .br - f.setStereo( TRUE ); + f.setStereo( true ); .br MyGLWidget* myWidget = new MyGLWidget( f, ... ); .br @@ -257,11 +257,11 @@ The \fIplane\fR parameter defaults to 0 and is the plane which this format shoul .PP See also defaultFormat() and setOption(). .SH "bool QGLFormat::accum () const" -Returns TRUE if the accumulation buffer is enabled; otherwise returns FALSE. The accumulation buffer is disabled by default. +Returns true if the accumulation buffer is enabled; otherwise returns false. The accumulation buffer is disabled by default. .PP See also setAccum(). .SH "bool QGLFormat::alpha () const" -Returns TRUE if the alpha channel of the framebuffer is enabled; otherwise returns FALSE. The alpha channel is disabled by default. +Returns true if the alpha channel of the framebuffer is enabled; otherwise returns false. The alpha channel is disabled by default. .PP See also setAlpha(). .SH "QGLFormat QGLFormat::defaultFormat ()\fC [static]\fR" @@ -297,29 +297,29 @@ Plane: 1 (i.e., first overlay plane). .PP See also setDefaultFormat(). .SH "bool QGLFormat::depth () const" -Returns TRUE if the depth buffer is enabled; otherwise returns FALSE. The depth buffer is enabled by default. +Returns true if the depth buffer is enabled; otherwise returns false. The depth buffer is enabled by default. .PP See also setDepth(). .SH "bool QGLFormat::directRendering () const" -Returns TRUE if direct rendering is enabled; otherwise returns FALSE. +Returns true if direct rendering is enabled; otherwise returns false. .PP Direct rendering is enabled by default. .PP See also setDirectRendering(). .SH "bool QGLFormat::doubleBuffer () const" -Returns TRUE if double buffering is enabled; otherwise returns FALSE. Double buffering is enabled by default. +Returns true if double buffering is enabled; otherwise returns false. Double buffering is enabled by default. .PP See also setDoubleBuffer(). .SH "bool QGLFormat::hasOpenGL ()\fC [static]\fR" -Returns TRUE if the window system has any OpenGL support; otherwise returns FALSE. +Returns true if the window system has any OpenGL support; otherwise returns false. .PP \fBWarning:\fR This function must not be called until the QApplication object has been created. .SH "bool QGLFormat::hasOpenGLOverlays ()\fC [static]\fR" -Returns TRUE if the window system supports OpenGL overlays; otherwise returns FALSE. +Returns true if the window system supports OpenGL overlays; otherwise returns false. .PP \fBWarning:\fR This function must not be called until the QApplication object has been created. .SH "bool QGLFormat::hasOverlay () const" -Returns TRUE if overlay plane is enabled; otherwise returns FALSE. +Returns true if overlay plane is enabled; otherwise returns false. .PP Overlay is disabled by default. .PP @@ -329,11 +329,11 @@ Returns the plane of this format. The default for normal formats is 0, which mea .PP See also setPlane(). .SH "bool QGLFormat::rgba () const" -Returns TRUE if RGBA color mode is set. Returns FALSE if color index mode is set. The default color mode is RGBA. +Returns true if RGBA color mode is set. Returns false if color index mode is set. The default color mode is RGBA. .PP See also setRgba(). .SH "void QGLFormat::setAccum ( bool enable )" -If \fIenable\fR is TRUE enables the accumulation buffer; otherwise disables the accumulation buffer. +If \fIenable\fR is true enables the accumulation buffer; otherwise disables the accumulation buffer. .PP The accumulation buffer is disabled by default. .PP @@ -341,7 +341,7 @@ The accumulation buffer is used to create blur effects and multiple exposures. .PP See also accum(). .SH "void QGLFormat::setAlpha ( bool enable )" -If \fIenable\fR is TRUE enables the alpha channel; otherwise disables the alpha channel. +If \fIenable\fR is true enables the alpha channel; otherwise disables the alpha channel. .PP The alpha buffer is disabled by default. .PP @@ -357,7 +357,7 @@ Sets a new default QGLFormat for the application to \fIf\fR. For example, to set .br QGLFormat f; .br - f.setDoubleBuffer( FALSE ); + f.setDoubleBuffer( false ); .br QGLFormat::setDefaultFormat( f ); .br @@ -373,7 +373,7 @@ For example, to get a double buffered overlay context (if available), use code l .br QGLFormat f = QGLFormat::defaultOverlayFormat(); .br - f.setDoubleBuffer( TRUE ); + f.setDoubleBuffer( true ); .br QGLFormat::setDefaultOverlayFormat( f ); .br @@ -407,7 +407,7 @@ As usual, you can find out after widget creation whether the underlying OpenGL s .PP See also defaultOverlayFormat(). .SH "void QGLFormat::setDepth ( bool enable )" -If \fIenable\fR is TRUE enables the depth buffer; otherwise disables the depth buffer. +If \fIenable\fR is true enables the depth buffer; otherwise disables the depth buffer. .PP The depth buffer is enabled by default. .PP @@ -415,7 +415,7 @@ The purpose of a depth buffer (or Z-buffering) is to remove hidden surfaces. Pix .PP See also depth(). .SH "void QGLFormat::setDirectRendering ( bool enable )" -If \fIenable\fR is TRUE enables direct rendering; otherwise disables direct rendering. +If \fIenable\fR is true enables direct rendering; otherwise disables direct rendering. .PP Direct rendering is enabled by default. .PP @@ -423,7 +423,7 @@ Enabling this option will make OpenGL bypass the underlying window system and re .PP See also directRendering(). .SH "void QGLFormat::setDoubleBuffer ( bool enable )" -If \fIenable\fR is TRUE sets double buffering; otherwise sets single buffering. +If \fIenable\fR is true sets double buffering; otherwise sets single buffering. .PP Double buffering is enabled by default. .PP @@ -435,7 +435,7 @@ Sets the format option to \fIopt\fR. .PP See also testOption(). .SH "void QGLFormat::setOverlay ( bool enable )" -If \fIenable\fR is TRUE enables an overlay plane; otherwise disables the overlay plane. +If \fIenable\fR is true enables an overlay plane; otherwise disables the overlay plane. .PP Enabling the overlay plane will cause QGLWidget to create an additional context in an overlay plane. See the QGLWidget documentation for further information. .PP @@ -447,7 +447,7 @@ Note that in contrast to other format specifications, the plane specifications w .PP See also plane(). .SH "void QGLFormat::setRgba ( bool enable )" -If \fIenable\fR is TRUE sets RGBA mode. If \fIenable\fR is FALSE sets color index mode. +If \fIenable\fR is true sets RGBA mode. If \fIenable\fR is false sets color index mode. .PP The default color mode is RGBA. .PP @@ -457,7 +457,7 @@ In color index mode you specify an index into a color lookup table. .PP See also rgba(). .SH "void QGLFormat::setStencil ( bool enable )" -If \fIenable\fR is TRUE enables the stencil buffer; otherwise disables the stencil buffer. +If \fIenable\fR is true enables the stencil buffer; otherwise disables the stencil buffer. .PP The stencil buffer is disabled by default. .PP @@ -465,7 +465,7 @@ The stencil buffer masks certain parts of the drawing area so that masked parts .PP See also stencil(). .SH "void QGLFormat::setStereo ( bool enable )" -If \fIenable\fR is TRUE enables stereo buffering; otherwise disables stereo buffering. +If \fIenable\fR is true enables stereo buffering; otherwise disables stereo buffering. .PP Stereo buffering is disabled by default. .PP @@ -473,15 +473,15 @@ Stereo buffering provides extra color buffers to generate left-eye and right-eye .PP See also stereo(). .SH "bool QGLFormat::stencil () const" -Returns TRUE if the stencil buffer is enabled; otherwise returns FALSE. The stencil buffer is disabled by default. +Returns true if the stencil buffer is enabled; otherwise returns false. The stencil buffer is disabled by default. .PP See also setStencil(). .SH "bool QGLFormat::stereo () const" -Returns TRUE if stereo buffering is enabled; otherwise returns FALSE. Stereo buffering is disabled by default. +Returns true if stereo buffering is enabled; otherwise returns false. Stereo buffering is disabled by default. .PP See also setStereo(). .SH "bool QGLFormat::testOption ( FormatOption opt ) const" -Returns TRUE if format option \fIopt\fR is set; otherwise returns FALSE. +Returns true if format option \fIopt\fR is set; otherwise returns false. .PP See also setOption(). |
