Advertisement

Backround on whole window

Started by March 16, 2003 11:02 PM
0 comments, last by Guzba 21 years, 8 months ago
Ive begun creating a 2d space shooter and i need to set a bitmap as my background. At this point im not worried about it moving but im just wondering how i would load the bitmap into a texture on a cube the size of my 800x600x16 window (im new to openGL) so that it looks like its the background.. any tips?
"I never finish what i sta.."Computer:ATI Radeon 9700 PROP4 2.66 GHz512 RDRAM
If you want the edges to be exactly on the boarder of your screen, then I suggest setting up and Ortho window and then drawing it as a texture mapped quad. If you are very new to openGL though you could just display a texture mapped quad in normal space. You would just have to use trial and error to find out the coordinates. The textue won''t line up exactly on the edges of the screen, though you could get it pretty close. Also things might go past it it you are not careful to make sure they are totally in front of it.

- Go not to the elves for counsel, for they will say both yes and no.
- Go not to the elves for counsel, for they will say both yes and no.

This topic is closed to new replies.

Advertisement