summaryrefslogtreecommitdiffstats
path: root/examples/demo/opengl/gllandscape.cpp
diff options
context:
space:
mode:
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;
}
}