View Full Version : glBitmap

09-22-2006, 06:43 AM
I am using glBitmap to draw some XBM files onto a screen. The icon builder I used in Solaris appears to have made the XBM files in Least Significant Bit (LSB) order. I was using these in a Qt program and I had to set a flag stating they were in LSB to get them to draw correctly. I have looked in the Red Book and cannot find if there is a similar flag in OpenGL. If not, does anybody know how to convert XBM files from LSB to MSB order? Thanks for your help!

09-22-2006, 08:23 AM
Check the manpage for glPixelStore, and GL_UNPACK_LSB_FIRST.