rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Add isTranslucent() #152

Closed mikerreed closed 2 years ago

mikerreed commented 2 years ago

This is a public facing method, to provide clients the opportunity to know if a given artboard will need per-pixel-alpha after it is drawn. Useful if the client wants to cull out drawings behind the artboard, or as an optimization hint to an image/video encoder (often opaque images can compress better).

mikerreed commented 2 years ago

... intended to be used here: https://github.com/rive-app/rive-recorder/pull/45

mikerreed commented 2 years ago

any other comments/issues?