← Back

ofxStencil

github.com/naychrist/ofxStencil · @naychrist
OF 0.7 Graphics

Simple addon for using stencil buffer.

3 3 Last commit 14y ago Created 14y ago

Forks

Forks pushed to more recently than naychrist/ofxStencil itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

bgstaal/ofxStencil by @bgstaal · ★ 1 · pushed 10y ago

README

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();

Get this addon

HTTPS
SSH