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 Updated to NodeBB v4.3 + New Features

Binding QOpenGLTexture to Depth attachment of QOpenGLFramebufferObject

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 686 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 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

    • Login

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