|
al_draw_Prim |
Ariesnl
Member #2,902
November 2002
|
I want to do a fast circle approximation Does anyone know an algorithm to approximate a circle with say about 8 triangles. Drawing with al_draw_prim ! Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
Edgar Reynaldo
Major Reynaldo
May 2007
|
SiegeLord's method is the fastest circle approximation I've ever seen. Maybe give him a holler. It's on the forum somewhere but I have no idea where. Why do you think a triangle list is faster than a fan? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
DanielH
Member #934
January 2001
|
Wouldn't a fan be faster as the next triangle already uses 2 side of the previous, which is already calculated. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Try al_calculate_arc. It will give you the coordinates of the vertices to make a triangle list from. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|