Results 1 to 5 of 5

Thread: glBitmap();

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2000
    Posts
    10

    glBitmap();

    How do you load a bitmap from a file and then use it with glBitmap.

    I've no idea, hope you have...

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: glBitmap();

    I never knew there was a funtion called glBitmap. What does it do??
    :: Sleep is a poor substitute for caffeine ::

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Nice, France
    Posts
    201

    Re: glBitmap();

    It draws bitmaps. But NOT images. By bitmaps, OGL means arrays of pixels but ON/OFF pixels not images : if a bit is a 1 that means draw a pixel, if it's 0, don't draw (the pixels are drawn using the default color). This is usually used for such things as drawing text on the screen by defining fonts as bitmaps. to draw images, you can either use textured polygons or glDrawPixels.

    PS: Red book chapter 8 : http://helios.scripps.edu/cgi-bin/infosr...OpenGL_PG/14979

    [This message has been edited by Moz (edited 12-03-2000).]

  4. #4
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    pittsburgh,pa,usa
    Posts
    104

    Re: glBitmap();

    I used to do that, use glDrawPixels, i mean.
    but i found out that it's around 400x faster to draw a tm quad, and it only takes a couple more lines of code (considering you have a -1,1 orthogonal matrix setup) and 2 multiplies

    dunno, just something i found out the hard way
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I have no name that you may call me. I am merely Succinct.
    "Hey, where'd that display list rotate off to now?"

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Nice, France
    Posts
    201

    Re: glBitmap();

    Yes, it's actually much faster ... if you have the hardware. If you're in software rendering, I think glDrawPixels is faster even though I can hardly see any difference.

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. problems with glBitMap()
    By jdaniel in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-10-2004, 09:20 AM
  4. glBitmap()
    By kjackson in forum OpenGL: General
    Replies: 8
    Last Post: 12-16-2002, 03:50 AM
  5. what is the use of glbitmap?
    By kim1980 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-15-2001, 08:03 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