Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Classes | Functions
Stencil demo

Example of using the stencil buffer for visual effects.

Perform black and white rendering of a scene with alternating stripes depending on the number of primitives covering each surface.

Classes

class  StenciledApp
 Application for the stencil demo. More...
 
class  StenciledRenderer
 Renders a scene with an alternating black and white region style, using the stencil buffer to count primitives covering each pixel. More...
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main function of the physically-based rendering demo. Handles the setup and main loop.

Parameters
argcthe number of input arguments.
argva pointer to the raw input arguments.
Returns
a general error code.