custom plug/official API : How to implement Mask input ?

franz's picture

Hi, does ne1 have a clue on how to implement image Mask input, just like the built in Sprite patch, in a custom consumer plugin, using the official API ? thxxx, any info really appreciated.

bernardo's picture
Re: custom plug/official API : How to implement Mask input ?

mmmm, gonna look stupid from me so:

CGImageCreateWithMask([image CGImage], mask)?

does it help?

bangnoise's picture
Re: custom plug/official API : How to implement Mask input ?

OpenGL stencil buffer? Or a shader when you draw? Or do it in QC before the plugin.

franz's picture
Re: custom plug/official API : How to implement Mask input ?

thx both. I'll try the stencil buffer and the CGImage options (shader seems overkill for me at the moment) and report back.

bernardo's picture
Re: custom plug/official API : How to implement Mask input ?

hey frz I am not a progmmmer or anything... just curious b.