View Full Version : Circle fill
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)
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.
09-15-2008, 02:18 PM
Or a triangle fan.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.