Skip to content

naychrist/ofxStencil

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 

ofxStencil

Simple addon for using stencil buffer. Code adapted from:
http://www.videotutorialsrock.com/opengl_tutorial/reflections/video.php

You need to enable stencil buffer in main.cpp, for example:

ofAppGlutWindow window; window.setGlutDisplayString("stencil~2 rgba double samples>=4 depth");

Usage:

ofxStencil stencil; stencil.beginDrawingStencil(); //draw your mask stencil.beginUsingStencil(); //draw what you want masked stencil.endUsingStencil();

About

Simple addon for using stencil buffer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages