From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqglformat.html | 76 ++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'doc/html/tqglformat.html') diff --git a/doc/html/tqglformat.html b/doc/html/tqglformat.html index f2c6a9c61..3e2cc1141 100644 --- a/doc/html/tqglformat.html +++ b/doc/html/tqglformat.html @@ -106,8 +106,8 @@ a rendering context. One is to create a TQGLFormat and make it the default for the entire application:
     TQGLFormat f;
-    f.setAlpha( TRUE );
-    f.setStereo( TRUE );
+    f.setAlpha( true );
+    f.setStereo( true );
     TQGLFormat::setDefaultFormat( f );
     
@@ -115,8 +115,8 @@ default for the entire application: your TQGLWidget subclass:
     TQGLFormat f;
-    f.setDoubleBuffer( FALSE );                 // single buffer
-    f.setDirectRendering( FALSE );              // software rendering
+    f.setDoubleBuffer( false );                 // single buffer
+    f.setDirectRendering( false );              // software rendering
     MyGLWidget* myWidget = new MyGLWidget( f, ... );
     
@@ -124,8 +124,8 @@ your TQGLWidget subclass: requested features the system was able to provide:
     TQGLFormat f;
-    f.setOverlay( TRUE );
-    f.setStereo( TRUE );
+    f.setOverlay( true );
+    f.setStereo( true );
     MyGLWidget* myWidget = new MyGLWidget( f, ... );
     if ( !w->format().stereo() ) {
         // ok, goggles off
@@ -189,15 +189,15 @@ supports overlay/underlay rendering planes.
 

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.

See also setAccum().

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.

See also setAlpha().

TQGLFormat TQGLFormat::defaultFormat () [static] @@ -231,45 +231,45 @@ Returns the default TQGLFormat for overlay contexts.

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.

See also setDepth().

bool TQGLFormat::directRendering () const

-

Returns TRUE if direct rendering is enabled; otherwise returns -FALSE. +

Returns true if direct rendering is enabled; otherwise returns +false.

Direct rendering is enabled by default.

See also setDirectRendering().

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.

See also setDoubleBuffer().

bool TQGLFormat::hasOpenGL () [static]

-

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.

Warning: This function must not be called until the TQApplication object has been created.

bool TQGLFormat::hasOpenGLOverlays () [static]

-

Returns TRUE if the window system supports OpenGL overlays; -otherwise returns FALSE. +

Returns true if the window system supports OpenGL overlays; +otherwise returns false.

Warning: This function must not be called until the TQApplication object has been created.

bool TQGLFormat::hasOverlay () const

-

Returns TRUE if overlay plane is enabled; otherwise returns FALSE. +

Returns true if overlay plane is enabled; otherwise returns false.

Overlay is disabled by default.

See also setOverlay(). @@ -283,13 +283,13 @@ formats is 1, which is the first overlay plane.

bool TQGLFormat::rgba () const

-

Returns TRUE if RGBA color mode is set. Returns FALSE if color +

Returns true if RGBA color mode is set. Returns false if color index mode is set. The default color mode is RGBA.

See also setRgba().

void TQGLFormat::setAccum ( bool enable )

-If enable is TRUE enables the accumulation buffer; otherwise +If enable is true enables the accumulation buffer; otherwise disables the accumulation buffer.

The accumulation buffer is disabled by default.

The accumulation buffer is used to create blur effects and @@ -298,7 +298,7 @@ multiple exposures.

void TQGLFormat::setAlpha ( bool enable )

-If enable is TRUE enables the alpha channel; otherwise disables +If enable is true enables the alpha channel; otherwise disables the alpha channel.

The alpha buffer is disabled by default.

The alpha channel is typically used for implementing transparency @@ -314,7 +314,7 @@ buffering, your main() might contain code like this:

     TQApplication a(argc, argv);
     TQGLFormat f;
-    f.setDoubleBuffer( FALSE );
+    f.setDoubleBuffer( false );
     TQGLFormat::setDefaultFormat( f );
     
@@ -329,7 +329,7 @@ format is used whenever a TQGLWidget is created wi available), use code like this:

     TQGLFormat f = TQGLFormat::defaultOverlayFormat();
-    f.setDoubleBuffer( TRUE );
+    f.setDoubleBuffer( true );
     TQGLFormat::setDefaultOverlayFormat( f );
     
@@ -353,7 +353,7 @@ specification:

void TQGLFormat::setDepth ( bool enable )

-If enable is TRUE enables the depth buffer; otherwise disables +If enable is true enables the depth buffer; otherwise disables the depth buffer.

The depth buffer is enabled by default.

The purpose of a depth buffer (or Z-buffering) is to remove hidden @@ -365,7 +365,7 @@ decide whether to draw a pixel or not.

void TQGLFormat::setDirectRendering ( bool enable )

-If enable is TRUE enables direct rendering; otherwise disables +If enable is true enables direct rendering; otherwise disables direct rendering.

Direct rendering is enabled by default.

Enabling this option will make OpenGL bypass the underlying window @@ -375,7 +375,7 @@ supported by the system.

void TQGLFormat::setDoubleBuffer ( bool enable )

-If enable is TRUE sets double buffering; otherwise sets single +If enable is true sets double buffering; otherwise sets single buffering.

Double buffering is enabled by default.

Double buffering is a technique where graphics are rendered on an @@ -392,7 +392,7 @@ Sets the format option to opt.

void TQGLFormat::setOverlay ( bool enable )

-If enable is TRUE enables an overlay plane; otherwise disables +If enable is true enables an overlay plane; otherwise disables the overlay plane.

Enabling the overlay plane will cause TQGLWidget to create an additional context in an overlay plane. See the TQGLWidget @@ -413,7 +413,7 @@ created.

void TQGLFormat::setRgba ( bool enable )

-If enable is TRUE sets RGBA mode. If enable is FALSE sets +If enable is true sets RGBA mode. If enable is false sets color index mode.

The default color mode is RGBA.

RGBA is the preferred mode for most OpenGL applications. In RGBA @@ -425,7 +425,7 @@ table.

void TQGLFormat::setStencil ( bool enable )

-If enable is TRUE enables the stencil buffer; otherwise +If enable is true enables the stencil buffer; otherwise disables the stencil buffer.

The stencil buffer is disabled by default.

The stencil buffer masks certain parts of the drawing area so that @@ -434,7 +434,7 @@ masked parts are not drawn on.

void TQGLFormat::setStereo ( bool enable )

-If enable is TRUE enables stereo buffering; otherwise disables +If enable is true enables stereo buffering; otherwise disables stereo buffering.

Stereo buffering is disabled by default.

Stereo buffering provides extra color buffers to generate left-eye @@ -444,20 +444,20 @@ and right-eye images.

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.

See also setStencil().

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.

See also setStereo().

bool TQGLFormat::testOption ( FormatOption opt ) const

-Returns TRUE if format option opt is set; otherwise returns FALSE. +Returns true if format option opt is set; otherwise returns false.

See also setOption(). -- cgit v1.2.3