View Full Version : How can i draw a star using glut and basic glVertex function?
05-01-2012, 10:40 AM
How can i draw a star using glut and basic glVertex function?
Can anyone post example code for this and the complete command to compile this program?
05-01-2012, 10:55 AM
Nobody is going to do your homework assignment for you.
I suggest you plot the point on graph paper and use glVertex3f to draw the polygon.
It's very simple and there are plenty of beginner tutorial sites to get you started. Don't be lazy and do your research!
05-01-2012, 11:03 AM
Yes, draw it on paper first (remember the axis (http://postimage.org/image/xa4u6l8jf/) representation). Use triangles and then use glVertex (MAN (http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml)) to draw the points!
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.