diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 09:01:42 +0900 |
| commit | 81ade129093a279e6537db25710583fd2bba9427 (patch) | |
| tree | a210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/demo/opengl/gllandscape.cpp | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/demo/opengl/gllandscape.cpp')
| -rw-r--r-- | examples/demo/opengl/gllandscape.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/demo/opengl/gllandscape.cpp b/examples/demo/opengl/gllandscape.cpp index 2906a5c84..8e570f2f6 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; } } |
