I have tried every rule in the book concerning how to texture polygons, and also looked over some source code tutorials. But yet, I can’t seem to get it to work, and the polygons I try to texture just appear in the color formerly defined. Some clarifications:
glGenTextures doesn’t give me back a new ID, why is that?
is there something that must be done, a variable or register that must be set before beginning to work with textures (including the uploading)? should the viewport be defined first or something?
why does glGetError always give me the same error flag, even on consecutive calls? shouldn’t it reset it?
I would like it very much if someone could give me a hand here.
We cannot possibly help you without looking at your code, the only thing I can recommend is making sure you have a valid rendering context, without one all gl* calls will fail, even glGetError. nehe.gamedev.net has a tutorial on setting up a rendering context on most OS’s.
How did you creat your texture?
if the texture size is not power of 2, it will be problem. (though some extensions work with non power of 2 texture size)