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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -