Nino
(Gravity Express)
October 10, 2024, 6:32pm
1
How are we supposed to clear a stencil from the graphics system?
The C documentation is pretty clear: use graphics->setStencil(NULL)
However, in pd_api_gfx.h, that function is deprecated.
I don't think we can use setStencilImage with a NULL, tho?
So I'm using setStencil(NULL) until some other option is surfaced
Nino
(Gravity Express)
October 10, 2024, 6:34pm
2
I suppose a clearStencil()
would be nice, in line with the non-deprecated lua function
since when is there not a playdate.graphics.clearStencil()
?
dave
(Dave Hayden)
October 11, 2024, 3:35am
4
Calling setStencilImage(NULL, anything)
to clear the stencil is fine, and using setStencil(NULL)
will continue to be supported for a long time. I'll file a note to clarify that in the docs.