[SDL] Background picture and OpenGL
Bruce @ OpenGL
bruce at opengl.com.br
Mon May 3 11:48:01 PDT 2004
Make a huge quad that covers the entire window area and then apply your
texture on it.
It is only a OpenGL issue, not a SDL one. Remember that your textures
sides must be in power of 2 so OpenGL can render it.
That quad will have a Z value higher than the other objects in your
scene so it appears to be in the background.
Hope this help,
Bruce Sinner
Torsten Mohr wrote:
>Hi,
>
>i load an image that has exactly the size of my SDL window.
>
>I'd like to set this picture as the background picture and
>draw some OpenGL in front of it.
>
>
>Can anybody tell me how to do that in SDL?
>
>Or is this a complete OpenGL issue (then i'll ask somewhere
>else)?
>
>
>Thanks for any hints,
>Torsten.
>
>
>_______________________________________________
>SDL mailing list
>SDL at libsdl.org
>http://www.libsdl.org/mailman/listinfo/sdl
>
>
>
>
>
More information about the SDL
mailing list