Results 1 to 3 of 3

Thread: glBitmap - bit alignment

  1. #1
    Member Newbie
    Join Date
    Nov 2006
    Location
    California
    Posts
    37

    glBitmap - bit alignment

    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.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: glBitmap - bit alignment

    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.

  3. #3
    Member Newbie
    Join Date
    Nov 2006
    Location
    California
    Posts
    37

    Re: glBitmap - bit alignment

    Thanks, it works now.

Similar Threads

  1. glBitmap on FBO
    By Peter Maarssen in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-06-2008, 03:29 AM
  2. glBitmap
    By ToddAtWSU in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-22-2006, 08:23 AM
  3. glBitmap()
    By kjackson in forum OpenGL: General
    Replies: 8
    Last Post: 12-16-2002, 03:50 AM
  4. what is the use of glbitmap?
    By kim1980 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-15-2001, 08:03 AM
  5. glBitmap();
    By kacke in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-04-2000, 04:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean