Results 1 to 2 of 2

Thread: stencil???

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    gainesville, fla, usa


    I am really confused with the use of the stencil buffer. I was trying to modify the stencil example in the red book to just draw
    a square in the center of the screen and then try to see what would happen if I then tried to draw in there again. I got some
    weird results that I was not able to interpret. Can someone please help me with this. I would appreciate a simple example. I was trying to define a square stencil area in the middle of the screen and then see what happens when I drew other objects that
    overlaped it partially. I guess I don't understand exactly what glStencilFunc and glStencilOp are doing. I don't understand
    what the argument mask means in glStencilFunc.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: stencil???

    I posted a simple explanation in the beginner forum.

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2013, 11:35 AM
  2. copy app generated stencil data to stencil buffer
    By guilder in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-23-2010, 06:46 PM
  3. Coping from FBO's stencil to main stencil buffer ?
    By gregory_x in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 08-30-2010, 01:09 AM
  4. depth-stencil texture: read stencil value.
    By kRogue in forum OpenGL: General
    Replies: 1
    Last Post: 05-23-2009, 04:22 AM
  5. How to clear stencil buffer after stencil test?
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-14-2003, 09:04 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