is there any easy way to load bitmaps without using glaux(cuz its not working and i dunno why)?
Off the top of my head…
struct stat s;
m = malloc(s.st_size);
f = fopen(filename, “r”);
fread(m, s.st_size, 1, f);
works with any sort of file too, not just bitmaps.
Search for .BMP file format on
It will be an easy task to code a function that loads the bitmap into memory.