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

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)
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!

04-11-2006, 04:02 AM
the AUX lib is very outdated.
maybe try this :

or search for "simple BMP loader"