View Full Version : Create texture without AUX, where?

Anonymous Coward
08-10-2000, 04:40 AM
Where can I find a tutorial about loading textures (.bmp) without AUX? The redbook explains only a way to load textures created on the same file (the checkerboard texture).

Where can I find info about loading other image formats as JPG or TGA?

08-10-2000, 05:59 AM
try http://nehe.gamedev.net/opengl.asp lesson 25, he explains TGA file formats...

I am trying to load .bmps but I am having trouble with it outside windows(without windows.h). I'll post something later...

08-10-2000, 05:04 PM
hmm... I can't get it to read! I have no clue what the problem is! I've looked at MANY sites that explain the .bmp format, and some of the have code in C. Since, I never learned C, but only C++, I tried to write my own .bmp reader, but with no luck!
www.imsa.edu/~ngill/mybitmap.h.txt (http://www.imsa.edu/~ngill/mybitmap.h.txt) www.imsa.edu/~ngill/mybitmap.cpp.txt (http://www.imsa.edu/~ngill/mybitmap.cpp.txt)

Take a look, I commented on like every line... should help, can someone give me a hand at this? I've been trying to get this working for like 2 days now.

08-11-2000, 11:28 AM
woo hoo it works now! It was a STUPID bug... like instead of reading int he whole fileinfo struct at once... i had to read it in value by value... that's gay, but now it works!! if you'd like to see my code, just e-mail me, it's platform independent...