Skip to main content
gamedev.net
🔒 Locked

Making pie

Started by matt_j Jan 22, 2003 at 4:00 PM 2 replies 350+ views
Original Post
matt_j
matt_j
What is a good way to plot a 2D pie. Is there any part of OpenGL that can make this easier for me?
eldee
eldee
if i were you, i''d create a triangle fan and set the
vertex colors accordingly

-eldee
;another space monkey;
[ Forced Evolution Studios ]

::evolve::

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!

matt_j
matt_j
Great idea. I should have thought of that. The only problem is that I want 20 divisions, and I''d have to draw a circle with 20 straight lines, otherwise a triangle fan would probably look a little weird in a circle that is more detailed than it.
Zorodius
Zorodius
Have you thought about quadrics? gluPartialDisk is your friend.
You don't need to vote for the "lesser of two evils"! Learn about Instant Runoff Voting, the simple cure for a broken democracy!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.