Hi All!
I use this code:
...
GLUquadric *quadObj = gluNewQuadric();
gluQuadricTexture( quadObj, GL_TRUE );
gluQuadricDrawStyle( quadObj, GLU_FILL );
gluQuadricNormals( quadObj, GLU_SMOOTH );
glPushMatrix();
glBindTexture( GL_TEXTURE_2D, text[1] );
glEnable( GL_TEXTURE_2D );
gluDisk( quadObj, 0, radius, quad, quad );
glDisable( GL_TEXTURE_2D );
glPopMatrix();
...
GLUquadric *quadObj = gluNewQuadric();
gluQuadricTexture( quadObj, GL_TRUE );
gluQuadricDrawStyle( quadObj, GLU_FILL );
gluQuadricNormals( quadObj, GLU_SMOOTH );
glPushMatrix();
glBindTexture( GL_TEXTURE_2D, text[1] );
glEnable( GL_TEXTURE_2D );
gluDisk( quadObj, 0, radius, quad, quad );
glDisable( GL_TEXTURE_2D );
glPopMatrix();
To copy to clipboard, switch view to plain text mode
When I set option glEnable( GL_CULL_FACE ) draw this:
1.jpg
Back side:
3.jpg
Texture drawing inside.
I need to draw outside:
2.jpg
How can I do this?
Thanks!!!
Bookmarks