PDA

View Full Version : getting started with Texturing.



prashantgp
12-08-2002, 08:59 PM
Hi all,
this will be my first code with texturing.
please help me out with how to load a simple
bmp file as a texture.( i am on Linux using MESA)
i want to use this bmp as a background.

thanks in advance,
prashant

nexusone
12-09-2002, 07:36 AM
If you are using Linux, I suggest using TGA file format for your textures.

There are a few utilities out there that will convert BMP to TGA format. I use Paint shop pro which is a very nice graphics editor.

I have a TGA texture loading example on my website:
http://www.angelfire.com/linux/nexusone/index.html



Originally posted by prashantgp:
Hi all,
this will be my first code with texturing.
please help me out with how to load a simple
bmp file as a texture.( i am on Linux using MESA)
i want to use this bmp as a background.

thanks in advance,
prashant

Sektor
12-10-2002, 05:40 AM
For handling images, I use the SDL_image library. I also use it for the window management. With SDL_image you can load textures as simple as IMG_Load(filename). Search the net to find the library.