PDA

View Full Version : How can I browse bmp files to map texture?



rhizome
11-25-2002, 08:53 PM
now I can map texture by type in the code:
"pix[2].readBMPFile("room2.bmp");"
How do I create 1 button or something like that to browse any bmp files from HardDisk or CD-Rom for map texture ?

please tell me...
Thank you so much. :-)

vijaykiran
11-25-2002, 09:49 PM
man...i guess you are completing your class project through forums http://www.opengl.org/discussion_boards/ubb/wink.gif buttons are a whole different topic in opengl. they are obtained by using GLUI. glui is based on glut entirely though. u need to download glui and obtain glui32.dll and glui32.lib in a windows environment (libglui.a if its in unix/linux/irix)... download glui from the following website:
http://gd.tuwien.ac.at/hci/glui/

and read the manual provided.. that should help you..not a 1 hr affair though...

-vijay.

rhizome
11-25-2002, 10:24 PM
Thanks...for your suggestion .
You're very exellent that can guess the truth.
:-P

Gavin
11-25-2002, 11:54 PM
But all the same that is just for a button, the rest is still a long way away......