Texture state

Hi.

Is any of the state used with texture saved with the texture?

I mean, if i set
glTexGeni( GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR ), for one texture and
glTexGeni( GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP ),
will i need to set that state every time i activate the texture or will opengl remember it?

same Question applies to
TexParameter & TexEnv.

Jonas

glTexGen, and glTexEnv, sets the state of a texture unit, and does not affect the texture itself.

glTexParameter sets paremeters specific to the texture object.

That is, if you enable texture cooridnate generation, you enable it on the texture unit, independent of which texture is bound, when it’s bound, and if you bind another texture while texture coordinate generation is still enabled.