Texture mapped fonts....
Hello, I am using DevIL to load my images and manually generate the texture, not GLaux lib.
So, the problem is that I am adding texture mapped fonts in my class, based on the 17 lesson. The text seems flipped horizontally and vertical!!
Also, only BMP images work, no JPG or PCX (supported also by devIL)
Any ideas?
are you using the jpg.lib? because encoding of jpeg starts at the end of the file and stops at the beginning. So the first encoded row you will get is the last data row of the actual image. so you have to swap your data array( simply switch pointers to reversed order and it should be ok ). about pcx i do not know. just know the problem of the jpg format. gametutorials does this wrong, too and has jpgs with the wrong side up (f.e. look at their QBSP tutorials).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement