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: window-system-provided depthbuffer

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    3

    window-system-provided depthbuffer

    How could I attach window-system-provided "depthbuffer" to application-created framebuffer object like this.
    Code :
    glFramebufferRenderbuffer( 
    GL_FRAMEBUFFER , GL_DEPTH_ATTACHMENT , GL_RENDERBUFFER , 
    window-system-provided-depthBuffer );

    I read the spec doc as follow.( http://www.opengl.org/registry/specs...fer_object.txt )
    By default, the GL uses the window-system-provided framebuffer. The
    storage, dimensions, allocation, and format of the images attached
    to this framebuffer are managed entirely by the window-system.
    Consequently, the state of the window-system-provided framebuffer,
    including its **images, can not be changed by the GL**, nor can the
    window-system-provided framebuffer itself, or its images, be deleted
    by the GL.
    I wonder about the possibility of this.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    652

    Re: window-system-provided depthbuffer

    You cannot query the renderbuffers "attached" to the window framebuffer. Therefor you cannot attach them to other FBOs. The only chance to use the window depthbuffer values somewhere else is blitting or copying them.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2011
    Posts
    3

    Re: window-system-provided depthbuffer

    Thanks, skynet.
    There are some unclear to me.
    In DX, possible to get default depth buffer by using GetDepthStencilSurface.
    I think It's same as renderbuffer(depth buffer) attached to the window framebuffer.
    Then, It's possible only on DX?

Posting Permissions

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