I made an application which uses stencil buffer . It draws polygon with hole .
But this couldn't make a hole .
Perhaps, can't I use stencil buffer in GLControl ?
Posted Saturday, 4 April, 2009 - 15:40 by the Fiddler
OpenTK will not create a stencil buffer, unless you explicitly request one. Create a new control that inherits from GLControl and add a constructor like this:
class CustomGLControl : GLControl{public CustomGLControl()
: base(newGraphicsMode(32, 24, 8)){}}
Use the new control in place of the GLControl and it should work fine.
Comments
Re: Stencil Buffer in WinForm + GLControl Application
OpenTK will not create a stencil buffer, unless you explicitly request one. Create a new control that inherits from GLControl and add a constructor like this:
Use the new control in place of the GLControl and it should work fine.
Re: Stencil Buffer in WinForm + GLControl Application
Thanks !
I made a class which inherits GLControl , and I executed a new program .
It came to be able to render a polygon with hole .