automatic texcoords generation

how do i set the automatic texture coordinate generation to map a square texture to the faces of a glutSolidCube? i’ve got one texture and want it to appear on each face of the cube so that it fits each face.


I seem to remember that glut has tex coords assigned to the objects anyway, and that the cube should produce the effect you are wanting.

I don’t think texgen could be manipulated to do what you want.

Just checked the glut source, and it doens’t seem to have the tex coords in - don’t know where I got that idea from. Oh well.