Know a good article or link that we're missing? Submit it!

C++ Game Development

Moderators: Lundin
Number of threads: 215
Number of posts: 485

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



 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - 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. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.