View Full Version : how to add textures from bmp files?

06-27-2003, 04:54 AM
is it possible to add textures from bmp files? would appreciate help on OpenGL in Qt (RedHat Linux)

06-27-2003, 05:05 AM
Qt provide a class (QImage) to handle image loading. it works for bmp as well as jpeg, tga, png, ...
then you can extract width, height and pixels from the QImage and create the texture like procedural texture.

you should check: http://doc.trolltech.com/3.1/
it is the online documentation of Qt.

06-27-2003, 05:35 AM
You can load texture from any file You want.
You only have to know how to read the image data from specific file format. Look at: www.wotsit.org (http://www.wotsit.org)
This page contains specifications of many file formats.

06-28-2003, 11:10 PM
Thanx. tried it out and the sites were a great help too.