Ok, can anybody please tell me why i cannot texture map anything in my application. I am loading opengl from within a library i have created. then when trying to display any object with texture mapping, i just simply get the shape with the most recent color selected…
Defualt minification filtering is GL_NEAREST_MIPMAP_LINEAR. If you didn’t specify a mipmap chain your texture unit stays off. Use glTexParameteri to switch to GL_LINEAR or GL_NEAREST.
Just for the record,
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR_MIPMAP_LINEAR);
is not an option, magnification allows only GL_NEAREST and GL_LINEAR and your code throws a GL error. There is no bigger texture than level of detail 0 to mipmap with.