Original Post
When using glTexParameteri() to set the texture filtering and wrapping modes, do I have to do this before the call to glTexImage2D() or gluBuild2DMipmaps(), or is it possible to change the texture filtering and wrapping modes via glTexParameteri() after the textures already been loaded? For example, is it possible to do this:
void DrawScene()
{
// the texture has already been loaded and glTexImage() has been called
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
// then draw whatever
}
------------------------------
BASIC programmers don''t die, they just GOSUB and don''t return.
