PDA

View Full Version : Background of window..



guzba
03-16-2003, 08:30 PM
Ive begun creating a 2d space shooter and i need to load 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?

Pops
03-16-2003, 08:59 PM
No need to use a cube (3d object) when you could just use a 4 sided polygon. Some of the early tutorials on http://nehe.gamedev.net/ will show you how.

DalTXColtsFan
03-17-2003, 05:02 PM
These functions should get you started as well:

glOrtho
glRasterPos2i
auxDIBImageLoad
glDrawPixels
glPixelZoom

[This message has been edited by DalTXColtsFan (edited 03-17-2003).]