PDA

View Full Version : Backgrounds



Galileo430
07-25-2000, 02:43 PM
Is there a way to set a Background to a certain image in OpenGL?

ngill
07-25-2000, 04:43 PM
not that I know of... then again, my knowledge of OpenGL is Extremely limited!

What you can do is draw a large rectangle (with GL_QUADS or many little triangles) far away and put a texture on it.

Cheers

Navreet

DFrey
07-25-2000, 05:00 PM
In fact they don't even have to be far away, just clear the z buffer and then draw your background using a 2D orthognal projection and have depth writes disabled. This is the easiest and fastest way to get a backdrop onto the screen I think.