[CSC 315] Polygon

Andrew J. Pounds pounds_aj at mercer.edu
Tue Sep 27 05:01:39 EDT 2016


glBegin(GL_POLYGON);

     loop over points

          glVertex( point values )

     end of loop

glEnd();


On 09/26/2016 09:27 PM,  wrote:
> Looking at gl_polygon, I'm not sure how I'd use it with a linked list 
> since you have to feed in points one by one (without making a vector 
> out of the list). I can't find an example online either. 

-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
http://faculty.mercer.edu/pounds_aj



More information about the csc315 mailing list