05-07-2001, 05:23 AM
Hello,
I cant figure out the syntax of glTexGen.. Does it create texture coordinates for any object? and where do i place it? lets say i have:
glBegin(GL_TRIANGLES);
glVertex3f(0.0, 1.0, 0.0);
glVertex3f(1.0, 0.0, 0.0);
glVertex3f(0.0, 0.0, 1.0);
glEnd();
and I want to apply a texture to this object.
Where do i place the glTexGen function? will it work ok? cause its too much work to do the texture mapping by urself.
I cant figure out the syntax of glTexGen.. Does it create texture coordinates for any object? and where do i place it? lets say i have:
glBegin(GL_TRIANGLES);
glVertex3f(0.0, 1.0, 0.0);
glVertex3f(1.0, 0.0, 0.0);
glVertex3f(0.0, 0.0, 1.0);
glEnd();
and I want to apply a texture to this object.
Where do i place the glTexGen function? will it work ok? cause its too much work to do the texture mapping by urself.