glBitmap() displays a binary bitmap, but how are the bits arranged in the bitmap? Are they byte aligned, word aligned or something else? I'm trying to build font bitmaps and can't quite get it to work.

Thanks.

Bob

07-31-2007, 03:34 AM

Bits within a row are drawn by extracting bit by bit for every consecutive byte pointed to by the pointer. And like any other image, new rows starts on an offset alignment defined by the unpack alignment (glPixelStore with GL_UNPACK_ALIGNMENT), which defaults to 4.