View Full Version : Drawing a simple circle
02-10-2002, 07:18 AM
How to draw a simple circle with filled color?
In my program, there are a triangle and a rectangle. I tried so many reference..but still can't draw a circle...
02-10-2002, 11:47 AM
theres probably an easy way but you could use simple trig and a filled polygon.
should draw a portion then changing the sign +/- of x and y will get hte rest of a circle and just use these points for your filled polygon, ive never tried it in opengl but should easily work.
you could just use a quadratic disc, more setting up but easyer once set up, if yr not to sure on drawing circles with trig.
this topic has already been discussed to death. do a search on the forums
02-13-2002, 06:35 AM
WOW, i never realised so many peops had troub with circles http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.