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…
Pls. help.
cheers,
siuchick
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…
Pls. help.
cheers,
siuchick
theres probably an easy way but you could use simple trig and a filled polygon.
x=sin(t)
y=cos(t)
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.
or
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
WOW, i never realised so many peops had troub with circles