Hi, I am somewhat new to OpenGL. Lately I have been experimenting with texturing, multi-texturing, PBuffers, framebuffers and the GLSL shader language. (in various combinations)
During these experiments, I have generated a few questions that the red book couldn’t satisfy for me.
I was hoping the knowledgeable crowd here might be able to shed some light on them.
They are:
- When using glBindTexture() for the first time, for a particular texture “name” (id number), certain properties are being recorded. Things like, blending mode and whether or not the texture is scaled with linear interpolation or nearest pixel algorithms. Then, these properties are considered active when the texure is selected later, via another call to glBindTexture() with that particular texture id.
My question is: Is there a formal list of what properties are being saved/restored with the texture? OpenGL has dozens of properties and many can effect how a texture is drawn. The red book doesn’t seem to specify which things will be active, when a particular texture is selected. If I need a texture to be rendered with a different property, I need to know what to override.
My follow-up question is: If I set a property to a different value, after a texture has been selected during a rendering pass, does the new value replace the recorded one? Or does the texture retain the value it recieved after creation?