-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of randomization to get in UAT for validation. Diffs= edac19b06 support randomizing transitions (#7082) Co-authored-by: hernan <[email protected]>
- Loading branch information
Showing
10 changed files
with
201 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2828b7b013811f1f4b0b0e2ee0f6d9b23c73878b | ||
edac19b0600a1ede64bb0b07e61556013a3e84fe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _RIVE_LAYER_STATE_FLAGS_HPP_ | ||
#define _RIVE_LAYER_STATE_FLAGS_HPP_ | ||
|
||
#include <type_traits> | ||
|
||
namespace rive | ||
{ | ||
enum class LayerStateFlags : unsigned char | ||
{ | ||
None = 0, | ||
|
||
/// Whether the transition is disabled. | ||
Random = 1 << 0, | ||
|
||
}; | ||
|
||
inline constexpr LayerStateFlags operator&(LayerStateFlags lhs, LayerStateFlags rhs) | ||
{ | ||
return static_cast<LayerStateFlags>( | ||
static_cast<std::underlying_type<LayerStateFlags>::type>(lhs) & | ||
static_cast<std::underlying_type<LayerStateFlags>::type>(rhs)); | ||
} | ||
} // namespace rive | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.