Create an object that can have multiple categories added tied to an integer representing percentage. No check for over 100%, leave it to the user to check their numbers.
Draw one triangle per 1%, then just draw number of triangles equal to categories percentage.
Maybe get smooth circle by drawing triangles larger than desired pie size, then use shader to drop fragments outside pie diameter.
Create an object that can have multiple categories added tied to an integer representing percentage. No check for over 100%, leave it to the user to check their numbers.
Draw one triangle per 1%, then just draw number of triangles equal to categories percentage.
Maybe get smooth circle by drawing triangles larger than desired pie size, then use shader to drop fragments outside pie diameter.