Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|libdeng2|RuleRectangle: Reimplemented based on IndirectRule
RuleRectangle now defines the output rules directly in terms of inputs, however the outputs are indirect so that anyone depending on them does not get distracted by the possible changing of inputs later on. This results in a substantially more elegant implementation for RuleRectangle that no longer has to rely on crutches to operate correctly: each output rule knows exactly how it depends on its inputs, so rule invalidation can work normally. Furthermore, the rectangle's anchor point animation can now be done with scalar rules without need for any extra work. The clunky DelegateRule was removed entirely.
- Loading branch information
Showing
8 changed files
with
93 additions
and
423 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.