SDK version: 3.0.3
Platform: Debian GNU/Linux
As soon as I call
pd->sprite->clearStencil(sprite);
on a valid sprite the Simulator errors out with:
pc_sprite_setStencilImage: non-NULL value required for argument 'b'
This happens regardless of whether I called pd→sprite→setStencil(Image|Pattern) earlier on the same sprite.
Aside from that, calling pd→sprite→setStencilImage(sprite, NULL, 0) also gives the same error. According to the documentation: “If stencil is NULL, the stencil is cleared”, so this doesn’t sound like intended behavior.
Am I missing something?
P.S. It would be nice to have a slightly better explanation of setStencilPattern in both API doc pages ^^
P.P.S. Why does pd→sprite→setStencilPattern take a non-const pointer as its argument?