View Full Version : background ?
is there any simple way to draw a picture(.jpg .tga or something) as background ?
marcus256
10-09-2001, 04:38 AM
1) Read it using some apropriate function (e.g. libjpeg for jpg files).
2) Upload it as a texture
3) 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 http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.