Texture mapping an image over an entire gluCylinder is easy, all I do is something like this :
// Bind the texture
m_Texture.setup();
// Draw the cylinder
gluQuadricDrawStyle(p_Quadric,GLU_FILL);
gluQuadricTexture(p_Quadric,GL_TRUE);
glPushMatrix();
glScalef(m_BaseRadius,m_BaseRadius,m_Height);
glTranslatef(0.0f,0.0f,-0.5);
gluCylinder(
p_Quadric,
1.0f,
m_TopRadius/m_BaseRadius,
1.0f,
m_NumSlices,
m_NumStacks
);
glPopMatrix();
BUT!!! That is not what I need right now. What I need to do is to repeat the texture around the cylinder. That is, each quad on the cylinder will have a copy of the image painted onto it.
Can anyone tell me how to do this?
Thanks!
[This message has been edited by pleopard (edited 02-22-2001).]