enmaniac
12-01-2005, 02:06 AM
Hi,
I have the following question:
Does the glTexParameteri function changes the parameter for currently enabled texture only ? For instance:
// bind texture 1
glBindTexture( GL_TEXTURE_2D, 1 );
// Set texture parameters
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
// bind texture 2
glBindTexture( GL_TEXTURE_2D, 1 );
// do above parameters affect this newly binded texture too ? Or should I specify the parameters again ?If anyone could explain me how does it work or give some link where it is described it would be great.
Thx in advance
I have the following question:
Does the glTexParameteri function changes the parameter for currently enabled texture only ? For instance:
// bind texture 1
glBindTexture( GL_TEXTURE_2D, 1 );
// Set texture parameters
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
// bind texture 2
glBindTexture( GL_TEXTURE_2D, 1 );
// do above parameters affect this newly binded texture too ? Or should I specify the parameters again ?If anyone could explain me how does it work or give some link where it is described it would be great.
Thx in advance