Hello =)
Has anyone implemented an all purpose texture loader that loads textures of any size and supports most major image formats (such as jpg, bmp, png, etc) ? My current textureloader only supports square jpg files that have a height / width of a power of 2.
Sun :)
ImageIO will do what you need. Really you don't want an all-purpose texture loader though - you need to settle on 1 or maybe 2 formats for your game and use just those.
Don't forget you can have rectangular textures in GL. The dimensions are independent of each other but still have to be powers of 2.
Cas :)
Yeah good point :D Thanks for the rectangular texture reminder... I hadn't thought of that.