OpenGL / GLU : Is there a built-in function for drawing circles? -
i know there built-in functions drawing rectangles (glrecti()
instance), , thought circle pretty basic usage.
is there such built-in function drawing circles? or should implement myself?
void gludisk(gluquadricobj *obj, gldouble innerradius, gldouble outerradius, glint slices, glint loops)
innerradius
,outerradius
control size of hole , disk.set
innerradius
0.0 render solid circle.
slices: number of sides disk (eg. 3 equilateral triangle, 6 washer 20 circle).
loops: number of concentric rings rendered eg. 1 circles 2 washers. using larger values loops improves specular lighting , effect of spotlights.
Comments
Post a Comment