/* ----------------------------------------------------------------------- */ /* Function : void JaegerDrawMaze( void ) * * Description : This function draws the labyrinth. * * Parameters : void * * Returns : void */ static void JaegerDrawMaze( void ) { for( int row = 0; row < GertMaze->height; row++ ) { for( int col = 0; col < GertMaze->width; col++ ) { switch( JaegerDrawMethod ) { case DRAW_ALL: // Draw all the cells. glPushMatrix( ); glTranslated( col * CellSide, 0.0, row * CellSide ); JaegerDrawCell( GertMaze->GetCell( row, col ) ); glPopMatrix( ); break; case DRAW_RADIUS: // Draw all the cells within a given radius. break; case DRAW_VISIBLE: // Draw all the cells that are potentially visible. break; } } } }