Batka
09-09-2005, 10:44 AM
Haw can I put texture on gluCylinder. I want to put some small texture on one Cylinder.
void studnia(){
//studnia
glTranslatef(10,0,10);
GLUquadricObj* studnia; // pow. wody
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture[1]);
glColor3f(1.0f,1.0f,1.0f);
glRotatef(-90,1,0,0);
studnia = gluNewQuadric();
gluQuadricTexture(studnia, GL_TRUE);
gluCylinder(studnia,4.0, 4.0, 3, 15, 15);
glRotatef(90,1,0,0);
void studnia(){
//studnia
glTranslatef(10,0,10);
GLUquadricObj* studnia; // pow. wody
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture[1]);
glColor3f(1.0f,1.0f,1.0f);
glRotatef(-90,1,0,0);
studnia = gluNewQuadric();
gluQuadricTexture(studnia, GL_TRUE);
gluCylinder(studnia,4.0, 4.0, 3, 15, 15);
glRotatef(90,1,0,0);