summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl')
-rw-r--r--examples/opengl/gear/gear.cpp2
-rw-r--r--examples/opengl/glpixmap/globjwin.cpp10
-rw-r--r--examples/opengl/overlay/glteapots.cpp6
-rw-r--r--examples/opengl/overlay_x11/gearwidget.cpp4
-rw-r--r--examples/opengl/overlay_x11/rubberbandwidget.cpp10
-rw-r--r--examples/opengl/texture/gltexobj.cpp6
6 files changed, 19 insertions, 19 deletions
diff --git a/examples/opengl/gear/gear.cpp b/examples/opengl/gear/gear.cpp
index 96152eedd..a895e6465 100644
--- a/examples/opengl/gear/gear.cpp
+++ b/examples/opengl/gear/gear.cpp
@@ -283,7 +283,7 @@ int main( int argc, char **argv )
}
if ( argc >= 2 ) {
- bool ok = TRUE;
+ bool ok = true;
timer_interval = TQString::fromLatin1( argv[1] ).toInt( &ok );
if ( !ok )
timer_interval = 10;
diff --git a/examples/opengl/glpixmap/globjwin.cpp b/examples/opengl/glpixmap/globjwin.cpp
index 0917110ff..136960b95 100644
--- a/examples/opengl/glpixmap/globjwin.cpp
+++ b/examples/opengl/glpixmap/globjwin.cpp
@@ -35,7 +35,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
{
// Create a menu
file = new TQPopupMenu( this );
- file->setCheckable( TRUE );
+ file->setCheckable( true );
file->insertItem( "Grab Frame Buffer", this, TQ_SLOT(grabFrameBuffer()) );
file->insertItem( "Render Pixmap", this, TQ_SLOT(makePixmap()) );
file->insertItem( "Render Pixmap Hidden", this, TQ_SLOT(makePixmapHidden()) );
@@ -146,7 +146,7 @@ void GLObjectWindow::makePixmapHidden()
// Make a TQGLWidget to draw the pixmap. This widget will not be shown.
GLBox* w = new GLBox( this, "temporary glwidget", c1 );
- bool success = FALSE;
+ bool success = false;
TQPixmap pm;
if ( w->isValid() ) {
@@ -160,7 +160,7 @@ void GLObjectWindow::makePixmapHidden()
pm = w->renderPixmap( sz.width(), sz.height() );
if ( !pm.isNull() )
- success = TRUE;
+ success = true;
}
if ( success ) {
@@ -197,11 +197,11 @@ void GLObjectWindow::useFixedPixmapSize()
{
if ( pmSz.isValid() ) {
pmSz = TQSize();
- file->setItemChecked( fixMenuItemId, FALSE );
+ file->setItemChecked( fixMenuItemId, false );
}
else {
pmSz = TQSize( 200, 200 );
- file->setItemChecked( fixMenuItemId, TRUE );
+ file->setItemChecked( fixMenuItemId, true );
}
}
diff --git a/examples/opengl/overlay/glteapots.cpp b/examples/opengl/overlay/glteapots.cpp
index 83d4cc3a0..87b07164f 100644
--- a/examples/opengl/overlay/glteapots.cpp
+++ b/examples/opengl/overlay/glteapots.cpp
@@ -71,7 +71,7 @@ GLTeapots::GLTeapots( TQWidget* parent, const char* name )
parent, name )
{
teapotList = 0;
- rubberOn = FALSE;
+ rubberOn = false;
}
/*!
@@ -288,7 +288,7 @@ void GLTeapots::mousePressEvent( TQMouseEvent* e )
{
rubberP1 = e->pos();
rubberP2 = rubberP1;
- rubberOn = TRUE;
+ rubberOn = true;
}
/*!
@@ -311,7 +311,7 @@ void GLTeapots::mouseMoveEvent( TQMouseEvent* e )
void GLTeapots::mouseReleaseEvent( TQMouseEvent* )
{
if ( rubberOn ) {
- rubberOn = FALSE;
+ rubberOn = false;
updateOverlayGL();
}
}
diff --git a/examples/opengl/overlay_x11/gearwidget.cpp b/examples/opengl/overlay_x11/gearwidget.cpp
index 9a1f4dd90..9ee642999 100644
--- a/examples/opengl/overlay_x11/gearwidget.cpp
+++ b/examples/opengl/overlay_x11/gearwidget.cpp
@@ -252,9 +252,9 @@ void GearWidget::paintGL()
{
tqDebug( "GearWidget: Doing GL rendering." );
#if defined (Q_GLX)
- static bool doneIt = FALSE;
+ static bool doneIt = false;
if ( !doneIt ) {
- doneIt = TRUE;
+ doneIt = true;
// Print out the Visual ID. Access to this will be made
// simpler in future versions of TQt!
XWindowAttributes a;
diff --git a/examples/opengl/overlay_x11/rubberbandwidget.cpp b/examples/opengl/overlay_x11/rubberbandwidget.cpp
index d0e60bdc5..7e5d0741c 100644
--- a/examples/opengl/overlay_x11/rubberbandwidget.cpp
+++ b/examples/opengl/overlay_x11/rubberbandwidget.cpp
@@ -19,7 +19,7 @@ RubberbandWidget::RubberbandWidget( TQColor transparentColor, TQWidget *parent,
: TQWidget( parent, name, f )
{
setBackgroundColor( transparentColor );
- on = FALSE;
+ on = false;
}
@@ -28,8 +28,8 @@ void RubberbandWidget::mousePressEvent( TQMouseEvent* e )
p1 = e->pos();
p2 = p1;
p3 = p1;
- on = TRUE;
- setMouseTracking( TRUE );
+ on = true;
+ setMouseTracking( true );
}
@@ -54,6 +54,6 @@ void RubberbandWidget::mouseReleaseEvent( TQMouseEvent* )
TQPainter p ( this );
p.eraseRect( rect() );
}
- on = FALSE;
- setMouseTracking( FALSE );
+ on = false;
+ setMouseTracking( false );
}
diff --git a/examples/opengl/texture/gltexobj.cpp b/examples/opengl/texture/gltexobj.cpp
index a6f7f80cd..af91fea86 100644
--- a/examples/opengl/texture/gltexobj.cpp
+++ b/examples/opengl/texture/gltexobj.cpp
@@ -33,10 +33,10 @@ GLTexobj::GLTexobj( TQWidget* parent, const char* name )
xRot = yRot = zRot = 0.0; // default object rotation
scale = 5.0; // default object scale
object = 0;
- animation = TRUE;
+ animation = true;
timer = new TQTimer( this );
connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(update()) );
- timer->start( redrawWait, TRUE );
+ timer->start( redrawWait, true );
}
@@ -74,7 +74,7 @@ void GLTexobj::paintGL()
if ( animation ) {
glFlush(); // Make sure everything is drawn before restarting timer
- timer->start( redrawWait, TRUE ); // Wait this many msecs before redraw
+ timer->start( redrawWait, true ); // Wait this many msecs before redraw
}
}