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

Thread: Stencil and Accumulation buffers quering

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Bulgaria, Sofia
    Posts
    21

    Stencil and Accumulation buffers quering

    How can I query if Stencil and/or Accumulation buffers are supported by a OpenGL implementation?
    And how to find how many bits is every element there?

  2. #2

    Re: Stencil and Accumulation buffers quering

    glGet(...)

    specifically,
    GL_AUX_BUFFERS
    GL_STENCIL_BITS
    GL_*COLOR*_BITS

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Bulgaria, Sofia
    Posts
    21

    Re: Stencil and Accumulation buffers quering

    Thanks a lot!
    It seems that my video-card (S3 Savage4) doesn't support such a buffers
    That's the result from glGet*():
    Color buffer bits: (R)8 (G)8 (B)8 (A)0 (Index)32
    Accumulation buffers count: 0
    Accumulation buffer bits: (R)0 (G)0 (B)0 (A)0
    Depth buffer bits: 16 Stencil buffer bits: 0

    Or there is some way to enable these buffers?
    In GLUT there is some flags to glutInitDisplayMode() used to enable Accumulation and Stencil buffers. But how can I do that without GLUT?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,755

    Re: Stencil and Accumulation buffers quering

    From MSDN documentation on the PIXELFORMATDESCRIPTOR struct: (If you're not using Glut, you should recoginize this struct as the one used with Choose/Describe/Set PixelFormat.)

    cColorBits
    Specifies the number of color bitplanes in each color buffer. For RGBA pixel types, it is the size of the color buffer, excluding the alpha bitplanes. For color-index pixels, it is the size of the color-index buffer.

    cAlphaBits
    Specifies the number of alpha bitplanes in each RGBA color buffer. Alpha bitplanes are not supported.

    cAccumBits
    Specifies the total number of bitplanes in the accumulation buffer.

    cDepthBits
    Specifies the depth of the depth (z-axis) buffer.

    cStencilBits
    Specifies the depth of the stencil buffer.
    I just pulled out all members which are relevant to your question.
    Deiussum
    Software Engineer and OpenGL enthusiast

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Bulgaria, Sofia
    Posts
    21

    Re: Stencil and Accumulation buffers quering

    Thanks!
    Now it's all clear to me.

Posting Permissions

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