Looking for work? Check out our jobs area.

Read Post

C++ Game Development

Moderators: Lundin
Number of threads: 203
Number of posts: 461

This Forum Only
Post New Thread

Report
OpenGL: auxDIBImageLoad Can't find file? Posted by JaguarZ on 3 Aug 2003 at 10:49 AM
AUX_RGBImageRec *pBitmap = NULL;

if(!strFileName) return;

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.

Any ideas?

Thanks everyone,
JaguarZ
Reply




corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.