Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Binding QOpenGLTexture to Depth attachment of QOpenGLFramebufferObject
Forum Update on Monday, May 27th 2025

Binding QOpenGLTexture to Depth attachment of QOpenGLFramebufferObject

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 669 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    idymiles
    wrote on 22 Feb 2017, 11:14 last edited by
    #1

    Is there a nice way to bind a QOpenGLTexture to the QOpenGLFramebufferObject depth component using only Qt calls?

    I'm guessing you could do it with raw GL commmands, something like:

    myQOpenGLFramebufferObject.bind();
    GLuint texDepthBufferId = myQOpenGLTexture.textureId()
    glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, texDepthBufferId, 0);
    

    But I'm wondering if the QOpenGLFramebufferObject class has a nice way to bind a texture to the depth attachment? I can't seem to find anything. Is using raw GL calls the way to go?

    Thanks in advanced.

    1 Reply Last reply
    1

    1/1

    22 Feb 2017, 11:14

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved