Loading data from resource
Hi
I have a few questions. I''m using Visual Studio 6.0, developing a small demo/intro thingy. I want the data I use (images, sound, text, etc.) to be embedded in the exe file, or as a separate datafile. Puting the data into the "Resource" is''nt the problem, but how can I load e.g. images from the resource?
I currently use:
AUX_RGBImageRec *LoadBMP(char *Filename) {
FILE *File=NULL;
if (!Filename) {
return NULL;
}//if
File=fopen(Filename,"r");
if (File) {
fclose(File);
return auxDIBImageLoad(Filename);
}//if
return NULL;
}//LoadBMP
as the image loading function, and call it with:
TextureImage[0]=LoadBMP("Debug\\texture1.bmp")
I know I can remove the fopen test. The problem is a rewrite to load from resource.
Any help is appretiated.
Sanity is overrated
Sanity is overrated
LoadBitmap
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
Well, what would a complete texture loader for OpenGL look like, using LoadBitmap?
Sanity is overrated

Sanity is overrated
Sanity is overrated
read mi sign.. and good luck
"take a look around" - limp bizkit
www.google.com
"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement