/* Demos textures receding into the distance and stretched in foreground. Use the 'r' key to reveal the underlying quads. Scott D. Anderson scott.anderson@acm.org Fall 2003 */ #include #include /* for sqrt */ #include /* ================================================================ code for the grass */ /* This unit square is on the XZ (y=0) plane, in the ++ quadrant. */ bool reveal = false; void drawUnitSquare(int w, int h ) { int i,j; GLfloat dw = 1.0/w; GLfloat dh = 1.0/h; glNormal3f(0,1,0); for( i=0; i