Results 1 to 2 of 2

Thread: Overlays not available in Windows?

  1. #1
    Member Newbie
    Join Date
    Jan 2005
    Location
    Lexington, KY
    Posts
    48

    Overlays not available in Windows?

    I've queried my Windows XP GDI Generic Msft to see if I can use overlays, and I get back a resounding 'no'.

    Here's what I need to do:
    We have several 2D symbols moving in various x/y directions on the display. To give the illusion of movement, I'm drawing the background color of the previous x/y coordinate, then drawing the new x/y coordinates in a foreground color. This produces a moving symbol. But we also need to display bitmapped text on the display. The problem is, a symbol moving over the text will erase the text.

    So I wanted to draw the text (once) to an overlay and keep the overlay visible all of the time. I assume the moving symbols on the normal plane would not erase the bitmapped text on the overlay plane.

    But my system does not support overlays. Does anybody have any suggestions?

    I've not used the stencil buffer yet - could that be used to solve my problem?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    569

    Re: Overlays not available in Windows?

    Redraw your *entire* scene each frame. symbols and font included.

    glClear(AllBufferBits);
    DrawScene();
    MoveSymbols();
    //repeat.

Similar Threads

  1. Activating opengl Overlays in Windows
    By nimblefinder in forum OpenGL: Windows
    Replies: 1
    Last Post: 08-07-2004, 11:23 AM
  2. Overlays
    By monkeyboy81380 in forum OpenGL: Windows
    Replies: 1
    Last Post: 03-29-2004, 01:11 AM
  3. Overlays- what are they?
    By princeoflightning in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-03-2004, 08:50 AM
  4. overlays
    By Lemmy in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-28-2003, 12:36 PM
  5. Overlays
    By softland_gh in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 06-13-2001, 04:53 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