I noticed that when I load a texture, it can change the current color of the drawing, depending on the color of the texture. For example, after execution
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, info.biWidth, info.biHeight, 0, GL_RGB, GL_UNSIGNED_BYTE,bitmap); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
all consecutive polygons drawn on the screen will have a color depending on the loaded texture image.
Is this a standard? I did not find this behavior documented.
opengl textures
Elazar leibovich
source share