Using the Stencil Test Tutorial - OpenGL Tutorials in Delphi

OpenGL News / Downloads / OpenGL / Rage3D / Tutorials / Photos / Links / Contact Me / About / Forum
Chapter 1-2     Chapter 3-4    Chapter 5-7   Chapter 8-13


 Ads




 Using the Stencil Test (example 10.1) 24 November 2003
Description :

Delphi courses learning tutor OpenGL 3D Development Information Technology We use the Stencil buffer to draw a blue sphere on the inside of the stencil and two yellow tori on the outside.

Take note that because we dont use aux or glut, we have to set our Pixel Format Descriptor to use one stencil buffer.

Check the glCreateWnd function to see how that is done.

To see a more impressive version of using stencil buffers, click here.

Download :   33 KB (EXE and Source)




Chapter 1-2     Chapter 3-4    Chapter 5-7      Chapter 8-13


 Ads