View Full Version : Background of window..
guzba
03-16-2003, 07: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?
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, 04: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).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.