Image

Hi,
Cane we import a picture(designed in some program)
to our code to be the background

yes you can

Take a look at the NeHe site. There’s a lot of info on how to load image files that can be created from applications like Gimp or even “Paint” from Windows…

Originally posted by UrbanLegend:
yes you can
You said yes but you did not say how,so if you do know please tell me because i’m working in project to design simple Tennis game
regards
Fady

He was just making fun because you didn’t ask “how”. :wink:
The fastest way is normally to load the image from whatever file format you like (TGA uncompressed is one of the simplest), download as texture and render a textured quad as background.

Originally posted by Relic:
He was just making fun because you didn’t ask “how”. :wink:
The fastest way is normally to load the image from whatever file format you like (TGA uncompressed is one of the simplest), download as texture and render a textured quad as background.

please mor much clean because I’m newer to openGL,so if you please give me the steps by code

If you are a beginner, you are on the correct site to find all sorts of documentations and tutorials about OpenGL. Take a look on www.opengl.org

Then search the forum and the internet!
This topic has been dealt with a lot of times.

http://www.wotsit.org/ contains descriptions of various file formats.

The third Google hit for >“TGA” load code< found this nice link http://gpwiki.org/index.php/LoadTGACpp