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 2 of 2

Thread: Zbuffer

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

    Zbuffer

    Is there anyway to get a pointer to the Zbuffer or in any other way directly access it.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: Zbuffer

    You can't obtain a pointer to the ZBuffer.

    The only thing you can do is read it by using glReadPixels with GL_DEPTH_COMPONENT for the "format" parameter.

    Basically, you can not have any pointer to any OpenGL buffer. glReadPixels is the only way to go (but big WARNING : it is very slow !).

    By the way, if you want to write pixels, use glDrawPixels or glCopyPixels.

    Eric

Posting Permissions

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