PDA

View Full Version : OpenGl textures in Qt



Ashitaka
28th November 2006, 14:55
I'm new to openGL programming.
All the examples I try using QGLWidget, but lately I've encountered a problem with creating texture filteres. My GL tutorials suggest createing them using glTexParameter() and glTexImage2D() calls and so on. But as I use QGLWidget's bindTexture() function to bind a texture, I don't see any difference whether I try to create it with linear filtering or nearest or MipMapped. I was unable to find anything in assistant. :(

So, finally the question is - how to create differently filtered textures via QGLWidget?
Thanks in advance.

e8johan
28th November 2006, 15:45
The section named "Chapter 7" here: http://digitalfanatics.org/projects/qt_tutorial/chapter14.html , deals with texture filters. I can see the difference here - but it might have to do with graphics cards and such...