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,753

    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.

Similar Threads

  1. Multiple Stencil Buffers
    By Jermye in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-03-2012, 06:33 AM
  2. FBO, stencil buffers, and AA
    By ChiefWiggum in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 09-19-2005, 11:39 PM
  3. Accumulation Buffers doesn't exist
    By maleaume in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-26-2005, 08:44 AM
  4. stencil , feedback and accumulation buffer
    By poca in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-13-2003, 02:42 AM
  5. Slow stencil buffers?
    By rgreene in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-15-2002, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean