Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: GLUT Hardware Overlay c++

  1. #1
    Newbie Newbie
    Join Date
    Feb 2013
    Posts
    1

    GLUT Hardware Overlay c++

    Hello. I have been googling and it says you can create hardware overlay with GLUT. And i tried to do that with

    establishOverlay() in my program, but it says that GLUT doesnt support RGBA overlays.
    Soo i was wondering how am i suppose to do a overlay.

    What im trying to do is a black screen overlay, 200x200 where i can draw stuff on it


    any ideas?
    doing it in c++

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    There is no automatic support for overlays in OpenGL. You need to render to offscreen buffers and merge with some sort of blit. Do you know how to render to an off-screen buffer?

    Often you don't need to do this - for some thing like with a HUD you render your objects, then disable depth buffer tests and render your HUD

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    Quote Originally Posted by tonyo_au
    You need to render to offscreen buffers and merge with some sort of blit.
    Let's not get confused here. Blitting is not meant for compositing - blitting is scaling or non-scaling, partial or full a copy operation. You copy contents of one or multiple attachments to all active draw buffers.

    EDIT: Scratch that. It wasn't thought through - and I don't mean the blitting part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •