PDA

View Full Version : Circle fill



Occam
09-15-2008, 08:29 AM
Does anyone know of a FAST circle fill algorithm?
In the form of:

void circleFill(float xCentre, float yCentre, float Radius)
?????

trinitrotoluene
09-15-2008, 09:38 AM
You can use billboarding. Draw a square with a texture. For different radius, adjust the size of it's width and height. The texture contain the image of circle. Inside the circle alpha is 1,outside 0.For better result, use a mipmap texture with filtering to reduce jagged edge.

dletozeun
09-15-2008, 02:18 PM
Or a triangle fan.