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?

gludisk() can used so:

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.

official manpage.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -