Results 1 to 4 of 4

Thread: overlay QGLContext

  1. #1
    Join Date
    Jan 2006
    Posts
    26
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question overlay QGLContext

    Hi, all

    I initilized the main opengl context with QGLWidget. I want to create another context in the main context.

    Does anybody can give some code examples or useful URL to teach me using "makeOverlayCurrent(), updateOverlayGL(), initializeOverlayGL(), paintOverlayGL(), etc."

    Thanks for any replay!
    There is no secret in the face of the code.

  2. #2
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: overlay QGLContext

    Did you ever figure this out? I've made functions for paintOverlayGL, initializeOverlayGL, etc. And tested to make sure hasOpenGLOverlays is true and did setOverlay true, but still none of the overlay functions get called.

    I have yet to find an example for this with Qt4

    thanks.

  3. #3
    Join Date
    Feb 2007
    Posts
    49
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: overlay QGLContext

    Support vo Opengl overlay context depends on the drivers and platform.

  4. #4
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: overlay QGLContext

    Yes, but there is an boolean attribute that tells whether the current system supports overlays and it said true on my MacBook Pro (intel mac).

Similar Threads

  1. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 19:42
  2. QGLContext with multiple graphics cards
    By yuriy in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2006, 15:35
  3. Pixmap Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 22nd June 2006, 20:19
  4. Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 21
    Last Post: 24th May 2006, 13:15
  5. Alpha channel weirdness with QGLContext
    By renaissanz in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2006, 16:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.