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: stencil???

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

    stencil???

    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
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: stencil???

    I posted a simple explanation in the beginner forum.

Posting Permissions

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