Image loading and XML
Today was much more productive than yesterday. After getting back from shopping (needed some food desperately), I started work on the engine. Previously, my engine only supported TGA
format for textures, which was fine before, but as this is more generic, it needed more format support. Therefore, looked around a bit and decided to use DevIL. It’s open source and under the Lesser GPL (a necessity since the engine might be used commercially). Plus, it supports a host of different formats: JPG, TGA, TIFF, etc etc…all packaged into a nice library. So, got that implemented into my engine and it’s working beautifully. The loading code is now very small thanks to the library. I did, however, run into a bit of a hitch when implementing it. For some reason, all textures on the models I tested were completely messed up. Turns out I had to call: