Click to See Complete Forum and Search --> : load bmp for texture mapping in C++


mimi17
April 29th, 2008, 06:42 AM
I read so many OpenGL tutorials on net but can't understand all of them as I don't have knowledge of windows programming.

Is there a way to load bitmap file for texture mapping without #include<windows.h> ? Any useful resource for reference? Thx!

Zachm
April 29th, 2008, 10:08 AM
Take a look at this (http://local.wasp.uwa.edu.au/%7Epbourke/dataformats/bmp/).

It includes source code for loading BMP files into a buffer and an example of how to use it (look at bitmap.c, bitmap.h and bmpview.c).

Regards,
Zachm