PDA

View Full Version : Image



05-09-2005, 01:04 AM
Hi,
Cane we import a picture(designed in some program)
to our code to be the background

UrbanLegend
05-09-2005, 01:09 AM
yes you can

ete
05-09-2005, 04:29 AM
Take a look at the NeHe (http://nehe.gamedev.net) 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...

fady
05-10-2005, 11:05 PM
Originally posted by UrbanLegend:
yes you canYou 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

Relic
05-11-2005, 12:10 AM
He was just making fun because you didn't ask "how". ;)
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.

fady
05-11-2005, 03:43 AM
Originally posted by Relic:
He was just making fun because you didn't ask "how". ;)
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

Relic
05-11-2005, 03:56 AM
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 (http://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