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
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
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:
[b]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[/b]
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.