I'm not sure how to texture a sphere in OpenGL without using external image loading libraries. Is this possible?
My sphere is as follows:
glPushMatrix();
GLUquadricObj *qObj = gluNewQuadric();
gluQuadricNormals(qObj, GLU_SMOOTH);
gluQuadricTexture(qObj, GL_TRUE);
glTranslatef(0, translation, 0);
gluSphere(qObj, 1.0f, 24, 24);
glPopMatrix();
I'd like to only use built in libraries, which poses an issue when searching online for solutions.
Can anyone lead me in the right direction?