Where is it?!
I'm trying to teach myslef Open Gl and i've got stuck at texture mapping. The tutorial I'm use went through explaining this function but it doesnt compile, becuase it wants a type indetifier, or something like that. The turtorial does use the header file gl/glaux.h (which i cant find) but i don't know whether that function comes from there. If it doesnt could you suggest a possible alternative?!
AUX_RGBImageRec *LoadBMP(char *Filename) // Loads A Bitmap Image
{
FILE *File=NULL; // File Handle
if (!Filename) // Make Sure A Filename Was Given
{
return NULL; // If Not Return NULL
}
File=fopen(Filename,"r"); // Check To See If The File Exists
if (File) // Does The File Exist?
{
fclose(File); // Close The Handle
return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer
}
return NULL; // If Load Failed Return NULL
}