View Full Version : How to draw Pie Chart
11-05-2004, 04:34 AM
Can anyone tell me how can i draw the pie chart by using the visual C++??
11-05-2004, 08:38 AM
You mean, with OpenGL ? :)
Draw a triangle fan for each color :
- first vertex at the center of the pie
- all subsequent vertices will be at the edge, approximating a circle.
See this sample picture (http://www.opengl.org/resources/tutorials/sig99/advanced99/notes/node18.html#fig:tri5) .
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.