Results 1 to 5 of 5

Thread: Draw Bitmaps

  1. #1

    Draw Bitmaps

    I am currently writing a Machine Vision App for tracking people. I am thinking of using OpenGL for visualisation and GLUT to handle the windowing.

    My question is is it easy to draw a bitmap image into a GLUT window? how do I do it?

    Thanks tim

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2001

    Re: Draw Bitmaps

    well, usually glDrawPixels() should work.
    or upload your bitmap as texture and draw a quad right over your screen
    you could use a 512x512 texture, only use 512x384 res (because that's our magical 0.75 aspect ratio) and then opengl scales it to your respective resolution (if you use different ones)
    that's how I did it in fullscreen, but I'd wodner if it won't work in a glut window.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Sydney, NSW, Australia

    Re: Draw Bitmaps

    If you would like, I could give you code in GLUT that loads a BMP file and textures it over a quad, done in a glut window. Just email me if you would like the code.
    :: Sleep is a poor substitute for caffeine ::

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Arlon, Belgium

    Re: Draw Bitmaps


    On my site, I've a little exemple who display a BMP like a splash screen.

    The function can be imported for GLUT with no problems.

    "Download" section

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Cardiff University

    Re: Draw Bitmaps

    Hi, just seen this, could you have a look at my Q on texture quality...


Similar Threads

  1. bitmaps
    By chign in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-04-2010, 05:11 AM
  2. Bitmaps
    By Azazel in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-15-2004, 05:31 AM
  3. bitmaps
    By Bra'Tac in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-03-2001, 07:59 AM
  4. Bitmaps!!! please help!!
    By roberts in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-07-2001, 02:53 PM
  5. BItmaps
    By Judith Mortimer in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-28-2000, 07:02 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