diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-26 11:44:58 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-30 14:26:34 +0900 |
| commit | 6dd781c483eea56f51ae0eff47d857976b5d0f0d (patch) | |
| tree | 0ddd4408e142ae6f8b13d3538359abd127988b2f /doc/man/man3/tqglformat.3qt | |
| parent | ff56b6fec14de4cd4b89d5b322531671d200b6e0 (diff) | |
| download | tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.tar.gz tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.zip | |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 7e13cc141..5b88995f2 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 TQGLFormat f; .br - f.setAlpha( TRUE ); + f.setAlpha( true ); .br - f.setStereo( TRUE ); + f.setStereo( true ); .br TQGLFormat::setDefaultFormat( f ); .br @@ -158,9 +158,9 @@ Or you can specify the desired format when creating an object of your TQGLWidget .br TQGLFormat 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 TQGLFormat 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 TQGLFormat::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 TQGLFormat::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 "TQGLFormat TQGLFormat::defaultFormat ()\fC [static]\fR" @@ -297,29 +297,29 @@ Plane: 1 (i.e., first overlay plane). .PP See also setDefaultFormat(). .SH "bool TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQApplication object has been created. .SH "bool TQGLFormat::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 TQApplication object has been created. .SH "bool TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat for the application to \fIf\fR. For example, to se .br TQGLFormat f; .br - f.setDoubleBuffer( FALSE ); + f.setDoubleBuffer( false ); .br TQGLFormat::setDefaultFormat( f ); .br @@ -373,7 +373,7 @@ For example, to get a double buffered overlay context (if available), use code l .br TQGLFormat f = TQGLFormat::defaultOverlayFormat(); .br - f.setDoubleBuffer( TRUE ); + f.setDoubleBuffer( true ); .br TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLWidget to create an additional context in an overlay plane. See the TQGLWidget 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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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 TQGLFormat::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(). |
