Results 1 to 8 of 8

Thread: Setting up OpenGL shaders with QGLWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Platforms
    MacOS X

    Default Re: Setting up OpenGL shaders with QGLWidget

    setDepth(true) enables the *depth buffer* in the context and does nothing for depth testing.
    try add glDepthFunc(GL_LEQUAL); somewhere in your initialization.

    also, the QGLFormat need to be setup before you create the context, and then sent in to the constructor as the second parameter.
    Last edited by 23critters; 9th September 2011 at 18:16.

Similar Threads

  1. Replies: 2
    Last Post: 30th December 2010, 17:03
  2. OpenGL shaders and x11 forwarding
    By Wali in forum Qt Programming
    Replies: 0
    Last Post: 2nd November 2010, 21:38
  3. 4.5.2 =>4.6.3 OpenGL shaders+qrphicsview issue
    By medved6 in forum Qt Programming
    Replies: 1
    Last Post: 22nd August 2010, 19:33
  4. Replies: 0
    Last Post: 20th August 2010, 12:50
  5. OpenGL ES2.0 QGLWidget at GraphicsScene
    By chithize in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th August 2010, 05:11

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.