Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw Sphere with OPENGL library?

Can somebody give full source code of drawing a sphere with OPENGL?

like image 742
Shahryar Avatar asked Dec 07 '25 09:12

Shahryar


1 Answers

gluSphere(quadric,radius,slices,stacks);

Source

You need to have created the quadrics object with gluNewQuadric.

like image 153
ChrisF Avatar answered Dec 10 '25 11:12

ChrisF