When I want to use 2D texture mapping, the “problem” arises that I have to load BMP files.
Although I read a source code which showed how to load and store BMP information into the appropriate structures, it was written in C-Style code. ( I use to load files via the iostream classes…)
Apart from that, I don’t know anything about Windows BMP, thus I couldn’t understand the source code.
Could anybody give me a simple example which demonstrates only the really necessary things about how to load a bitmap and attach it to the glTexImage function?