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/tqglcontext.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'doc/html/tqglcontext.html') diff --git a/doc/html/tqglcontext.html b/doc/html/tqglcontext.html index 11bf59087..e12430327 100644 --- a/doc/html/tqglcontext.html +++ b/doc/html/tqglcontext.html @@ -161,9 +161,9 @@ application has spcific requirements on visual selection.

bool TQGLContext::create ( const TQGLContext * shareContext = 0 ) [virtual]

-Creates the GL context. Returns TRUE if it was successful in +Creates the GL context. Returns true if it was successful in creating a valid GL rendering context on the paint device -specified in the constructor; otherwise returns FALSE (i.e. the +specified in the constructor; otherwise returns false (i.e. the context is invalid).

After successful creation, format() returns the set of features of the created GL rendering context. @@ -200,8 +200,8 @@ current.

bool TQGLContext::deviceIsPixmap () const [protected]

-

Returns TRUE if the paint device of this context is a pixmap; -otherwise returns FALSE. +

Returns true if the paint device of this context is a pixmap; +otherwise returns false.

void TQGLContext::doneCurrent () [virtual protected]

@@ -226,25 +226,25 @@ in the font font. The first list will start at index listBase.

bool TQGLContext::initialized () const [protected]

-

Returns TRUE if this context has been initialized, i.e. if +

Returns true if this context has been initialized, i.e. if TQGLWidget::initializeGL() has been performed on it; otherwise -returns FALSE. +returns false.

See also setInitialized().

bool TQGLContext::isSharing () const

-

Returns TRUE if display list sharing with another context was +

Returns true if display list sharing with another context was requested in the create() call and the GL system was able to -fulfill this request; otherwise returns FALSE. Note that display +fulfill this request; otherwise returns false. Note that display list sharing might not be supported between contexts with different formats.

bool TQGLContext::isValid () const

-

Returns TRUE if a GL rendering context has been successfully -created; otherwise returns FALSE. +

Returns true if a GL rendering context has been successfully +created; otherwise returns false.

void TQGLContext::makeCurrent () [virtual]

@@ -291,7 +291,7 @@ new format. TQGLContext *cx; // ... TQGLFormat f; - f.setStereo( TRUE ); + f.setStereo( true ); cx->setFormat( f ); if ( !cx->create() ) exit(); // no OpenGL support, or cannot render on the specified paintdevice @@ -304,16 +304,16 @@ new format.

void TQGLContext::setInitialized ( bool on ) [protected]

-

If on is TRUE the context has been initialized, i.e. +

If on is true the context has been initialized, i.e. TQGLContext::setInitialized() has been called on it. If on is -FALSE the context has not been initialized. +false the context has not been initialized.

See also initialized().

void TQGLContext::setWindowCreated ( bool on ) [protected]

-

If on is TRUE the context has had a window created for it. If -on is FALSE no window has been created for the context. +

If on is true the context has had a window created for it. If +on is false no window has been created for the context.

See also windowCreated().

void TQGLContext::swapBuffers () const [virtual] @@ -326,8 +326,8 @@ the context is in double buffer mode.

bool TQGLContext::windowCreated () const [protected]

-

Returns TRUE if a window has been created for this context; -otherwise returns FALSE. +

Returns true if a window has been created for this context; +otherwise returns false.

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