render rest of house michael tao csc418 computer

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i = 0; i <100; ++ i ) { glPushMatrix () ; glTranslatef (i ,0.0 ,0.0) ; // Push ourselves to row i for ( int j = 0; j <100; ++ j ) { glPushMatrix () ; glTranslatef (0.0 , j ,0.0) ; // Push ourselves to row j renderTree () ; // draw tree at position i , j glPopMatrix () ; } glPopMatrix () ; } } Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 29 / 31 Forest Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 30 / 31 Questions? Questions? Michael Tao CSC418: Computer Graphics Tutorial 1 September 20, 2012 31 / 31...
View Full Document

Ask a homework question - tutors are online