is there any simple way to draw a picture(.jpg .tga or something) as background ?
- Read it using some apropriate function (e.g. libjpeg for jpg files).
- Upload it as a texture
- Instead of clearing the color buffer, draw a quad with the texture which covers the entire viewport
This method is insensitive to screen/window resolution since the texture will be sceled to fit the viewport (use GL_LINEAR filtering).
/Marcus
I´ll try that.
Thanks