AUX_RGBImageRec *pBitmap = NULL;
pBitmap = auxDIBImageLoad(strFileName);
if(pBitmap == NULL) exit(0);
This is the code i'm using to open a bitmap file and convert it to a texture. strFileName is assigned. the check through pBitmap == NULL always returns true and I get an error that my program can't open DIB File Bitmap.bmp (the file name in strFileName).
The image file is in the same directory as the exe.
I'm trying to convert this to a screensaver, and though it has afew problems, it works normally except for finding this file.
I have tried specifiying the directory but it doesn't seem to work.