Thread: placing bitmap.

  1. #1
    Registered User The15th's Avatar
    Join Date
    Aug 2001

    placing bitmap.

    Hi all;

    behind my menu in my game i have a bitmap that fills the entire screen. anyway after some trial and error i found the right numbers for the glRasterPos2f() function. however i was hoping for a quick lession on how this function sets the position of the bitmap because i would like to understand that. to set my bitmap to the lower left i had to use glRasterPos2f(-1.0f, -4.5f); which seems wierd to me.

    Thanks heaps.
    arrh, i got nothing good to say.

  2. #2
    It is weird. You need to understand the difference between "local" and "global" coordinate systems.

    Normally in your window, you're working with local coordinates. If however, you need to position something on the background screen, you need to convert to global coordinates and then do the work.

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Buffalo, NY
    you're pretty don't need all that crap. Why don't you just make a really big picture? I do that. It works!

  4. #4
    why are you getting so angry... anyway that does not seem the most efficent way to do things. also bitmap images have to be to the power of two. I know not always but in this case they do. so 512 by 512, or 1024 by 1024, either way it has to be placed correctly and sized to fit the screen. which will be my next question, wouldnt your way course problems on diffrent machines.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 09:43 AM
  2. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  3. Loading a Bitmap resource for OpenGL Texture[x]
    By the dead tree in forum Game Programming
    Replies: 4
    Last Post: 08-26-2004, 01:12 PM
  4. bitmap not going onto screen
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 02-22-2003, 10:07 AM
  5. texture is all white in opengl!
    By Crossbow in forum Game Programming
    Replies: 7
    Last Post: 03-31-2002, 11:54 AM