where in place of somebitmapfile i put a path of a bitmap e.g c:\windows\Circles.bmp
but i keep getting the error :
undefined reference to `auxDIBImageLoadA@4’
Did you put in your linker, to include the glaux.lib?
The glaux.lib is only used for BMP file loading. Later in nehe tutors, you will find he stop’s using the glaux libray.
And starts useing a TGA file loader for his textures, since the glaux library is no longer supported.
TGA has advantages over BMP files, one is that it is easier to load the files and it supports a alpha channel(which is very useful).
Originally posted by jono_123:
[b]hi there
im having troubles loading bitmaps
i’ve got the code from nehe and it does a bit like this:
where in place of somebitmapfile i put a path of a bitmap e.g c:\windows\Circles.bmp
but i keep getting the error :
undefined reference to `auxDIBImageLoadA@4’
There are other routines you can use to do this, other people have writen code to load BMP’s. (See the nehe site, tutor 33 has a TGA loader and I think there is also BMP loader)
And as I suggested you can use the TGA format, any good paint program can convert BMP to TGA.
Originally posted by jono_123: so how do i load a bitmap without glaux?