LWJGL Forum

Programming => OpenGL => Topic started by: elias4444 on May 24, 2006, 15:38:22

Title: glScissor for a circular area?
Post by: elias4444 on May 24, 2006, 15:38:22
Anyone know if there's a way to do something like glScissor for a circular area?

I'm using a circular radar, and don't want objects drawing outside of the radar screen area. I only display items that are in the radar range, but some objects are big and draw partially inside and outside.
Title: glScissor for a circular area?
Post by: princec on May 24, 2006, 18:40:10
Use the stencil buffer.

Cas :)
Title: glScissor for a circular area?
Post by: elias4444 on May 24, 2006, 20:12:55
Yeah... I've avoided using the Stencil Buffer thus far (it intimidates me). Guess I better go do some reading on it.