Files
rive-cpp/include/rive/clip_result.hpp
bodymovin c27002a5d3 add clipResult enum and render clips to copy the editor behavior
This PR changes how clipping works in the runtime in order to mimic how the editor works.
A hidden path will now behave as an empty path effectively fully hiding the clipped element instead of being skipped.
It also introduces a performance improvement in case shapes don't have any visible paths. The ClipResult enum is used to differentiate between clipping with at least an empty path or no empty paths at all.
For now, that improvement will only be used for hidden paths but an upcoming PR will also use it for collapsed paths inside solos.

Diffs=
e717ed98a add clipResult enum and render clips to copy the editor behavior (#6218)

Co-authored-by: hernan <hernan@rive.app>
2023-11-14 00:01:33 +00:00

12 lines
178 B
C++

#ifndef _RIVE_CLIP_RESULT_HPP_
#define _RIVE_CLIP_RESULT_HPP_
namespace rive
{
enum class ClipResult : unsigned char
{
noClip = 0,
clip = 1,
emptyClip = 2
};
}
#endif