I’ve written a program in which I create texture mapped polygons, along with non texturemapped polygons. It seems as though the colors of the texture affects the colors of the non-texture mapped polygons. Does anyone have any insight into this? Thanks.
How do you define “non-texture mapped”?
If you mean your not sending TexCoords for those, then yes of course the texture will affect them, because all vertices get the texcoord assigned you sent last, because OpenGL is a state machine.
You have to explicitly disable texturing for all texture units which had it enabled before.
Or you could switch to a white texture and set texture environment to GL_MODULATE. Nah, just kidding.
Thanks, it worked, I never realized that you would have to disable texture mapping to draw normal, just colored polygons. Thanks a bunch.