I just started fooling around with texure mapping yesterday following the directions in the Superbible, and I had no problem implementing a function to read in .bmp’s, define them as the current texture, and then drawing a texture mapped object.
However when I attempted to use texture objects so as not to have to constantly redefine the current texture I can’t get the textures to work.
I know that my .bmp loading and texture object generating functions work because I plopped them into the example code given with the superbible and it still worked, which means that I am properly generating a texture object.
If that’s the case then all I should have to do is call
I don’t create my texture objects until after window creation so I have on clue why they won’t work rendering for me but they will in Micheal Sweet’s code.
So my function was attempting to set MIN/MAG_FILTERs of GL_REAPEAT, and a wrap of GL_LINEAR. I guess that the error had already been cleared by the time I tried to use glGetError();