summaryrefslogtreecommitdiffstats
path: root/examples/demo/opengl/gllandscape.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 08:53:47 +0900
commitc03a4800879ab62692e017e01c825ba12a421ad0 (patch)
tree57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/demo/opengl/gllandscape.cpp
parent030b165ac197ce4c2eb62c7700dc4c10604637aa (diff)
downloadtqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz
tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/demo/opengl/gllandscape.cpp')
-rw-r--r--examples/demo/opengl/gllandscape.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/demo/opengl/gllandscape.cpp b/examples/demo/opengl/gllandscape.cpp
index 1de9102b0..612f8c264 100644
--- a/examples/demo/opengl/gllandscape.cpp
+++ b/examples/demo/opengl/gllandscape.cpp
@@ -18,8 +18,8 @@
GLLandscape::GLLandscape( TQWidget * parent, const char * name )
: TQGLWidget( parent, name )
{
- mouseButtonDown = FALSE;
- animationRunning = FALSE;
+ mouseButtonDown = false;
+ animationRunning = false;
oldX = oldY = oldZ = 0.0;
landscape = 0;
vertexNormals = 0;
@@ -308,7 +308,7 @@ void GLLandscape::createGrid( int size )
size++;
gridSize = size;
gridHalf = gridSize / 2;
- initFractals = TRUE;
+ initFractals = true;
landscape = new double*[gridSize];
normals = new gridNormals*[gridSize];
vertexNormals = new avgNormals*[gridSize];
@@ -425,7 +425,7 @@ void GLLandscape::fractalize()
p.x = p.y = p.z = 0;
// Initialise fbm routine
if ( initFractals ) {
- initFractals = FALSE;
+ initFractals = false;
value = fBm( p, roughness, 2.0, 8.0, 1 );
}
@@ -650,13 +650,13 @@ void GLLandscape::setLandscape( int state )
void GLLandscape::mousePressEvent( TQMouseEvent *e )
{
oldPos = e->pos();
- mouseButtonDown = TRUE;
+ mouseButtonDown = true;
}
void GLLandscape::mouseReleaseEvent( TQMouseEvent *e )
{
oldPos = e->pos();
- mouseButtonDown = FALSE;
+ mouseButtonDown = false;
}
void GLLandscape::mouseMoveEvent( TQMouseEvent *e )
@@ -742,10 +742,10 @@ void GLLandscape::toggleWaveAnimation( bool state )
{
if (state) {
animTimer = startTimer(20);
- animationRunning = TRUE;
+ animationRunning = true;
} else {
killTimer(animTimer);
- animationRunning = FALSE;
+ animationRunning = false;
}
}