🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
How can I make a nice sphere with out a thousand lines of code?
Ok, for my first OpenGL project I want to make a outer space scene and I want to add in a sphere. I tried some other codes but they don't work that well can someone help me out?
Try this:
#include <GL/glu.h>GLUquadricObj *q //Initializationq = gluNewQuadric();//RenderinggluSphere(q, radius, slices, stacks); //Radius is a float, slices and stacks are integers//DeinitializationgluDeleteQuadric(q);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement