PDA

View Full Version : How to create a texture from a bmp file?



Asura
04-11-2006, 03:52 AM
Hi all:
I want to create a texture from a bmp file, I got the following code from NeHe's tutorial.


Topology error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)
and
Topology fatal error LNK1120: 1 unresolved externals
Does anybody know why is this? Or may be have some other better solution to read a bmp file into the texture array please???
Thanks very much!

ZbuffeR
04-11-2006, 04:02 AM
the AUX lib is very outdated.
maybe try this :
http://users.ox.ac.uk/~orie1330/bmploader.html

or search for "simple BMP loader"