Skip to content

Commit

Permalink
Editor + Runtime Feathers!
Browse files Browse the repository at this point in the history
Adds feathering support to the runtime and editor.

A few important changes:
- Runtime now deals in RawPaths via ShapePaintPath. We no longer store a bunch of RenderPaths that we don't always end up using. Instead we use a light wrapper around RawPath (ShapePaintPath) to track intention of space (local, world, etc) and fill rule for the path so the runtime can pass that around and further mutate it or upgrade it to an immutable RenderPath only when it wants to actually draw it.
- Stroke effects like Dash and Trim now build on the update instead of render!

Diffs=
1b51fe394e Editor + Runtime Feathers! (#8891)
  • Loading branch information
bodymovin committed Jan 24, 2025
1 parent 8f2c8a3 commit 94ffd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
05a7f10acf92b0943d4a8513d13713720dd6c9f5
1b51fe394e81445b8e6c990780ed104ee582fde4
2 changes: 1 addition & 1 deletion submodules/rive-runtime
Submodule rive-runtime updated 63 files
+1 −1 .rive_head
+62 −0 dev/defs/shapes/paint/feather.json
+6 −7 dev/defs/shapes/paint/shape_paint.json
+10 −0 dev/defs/shapes/points_path.json
+8 −3 include/rive/artboard.hpp
+1 −0 include/rive/command_path.hpp
+8 −0 include/rive/foreground_layout_drawable.hpp
+51 −8 include/rive/generated/core_registry.hpp
+146 −0 include/rive/generated/shapes/paint/feather_base.hpp
+12 −12 include/rive/generated/shapes/paint/shape_paint_base.hpp
+2 −0 include/rive/hittest_command_path.hpp
+13 −3 include/rive/layout_component.hpp
+2 −0 include/rive/math/aabb.hpp
+6 −0 include/rive/math/bezier_utils.hpp
+5 −0 include/rive/math/mat2d.hpp
+10 −0 include/rive/math/raw_path.hpp
+12 −0 include/rive/renderer.hpp
+6 −7 include/rive/shapes/clipping_shape.hpp
+9 −9 include/rive/shapes/paint/dash_path.hpp
+32 −0 include/rive/shapes/paint/feather.hpp
+1 −4 include/rive/shapes/paint/fill.hpp
+15 −12 include/rive/shapes/paint/shape_paint.hpp
+9 −4 include/rive/shapes/paint/stroke.hpp
+3 −1 include/rive/shapes/paint/stroke_effect.hpp
+8 −7 include/rive/shapes/paint/trim_path.hpp
+8 −10 include/rive/shapes/path_composer.hpp
+1 −0 include/rive/shapes/path_flags.hpp
+5 −0 include/rive/shapes/points_path.hpp
+10 −0 include/rive/shapes/shape.hpp
+12 −0 include/rive/shapes/shape_paint_container.hpp
+77 −0 include/rive/shapes/shape_paint_path.hpp
+5 −1 include/rive/text/text.hpp
+12 −3 include/rive/text/text_style.hpp
+15 −52 renderer/src/rive_render_path.cpp
+2 −0 renderer/src/rive_render_path.hpp
+15 −11 src/artboard.cpp
+7 −8 src/drawable.cpp
+10 −16 src/foreground_layout_drawable.cpp
+11 −0 src/generated/shapes/paint/feather_base.cpp
+7 −0 src/hittest_command_path.cpp
+16 −22 src/layout_component.cpp
+139 −0 src/math/raw_path.cpp
+4 −7 src/shapes/clipping_shape.cpp
+22 −36 src/shapes/paint/dash_path.cpp
+100 −0 src/shapes/paint/feather.cpp
+11 −10 src/shapes/paint/fill.cpp
+104 −3 src/shapes/paint/shape_paint.cpp
+70 −0 src/shapes/paint/shape_paint_path.cpp
+48 −19 src/shapes/paint/stroke.cpp
+21 −40 src/shapes/paint/trim_path.cpp
+43 −26 src/shapes/path_composer.cpp
+1 −0 src/shapes/points_path.cpp
+27 −15 src/shapes/shape.cpp
+4 −4 src/text/font_hb.cpp
+20 −21 src/text/text.cpp
+25 −17 src/text/text_style.cpp
+ tests/unit_tests/assets/text_opacity_modifier.riv
+56 −0 tests/unit_tests/renderer/eval_cubic_test.cpp
+6 −4 tests/unit_tests/runtime/clip_test.cpp
+7 −8 tests/unit_tests/runtime/dash_test.cpp
+69 −49 tests/unit_tests/runtime/path_test.cpp
+10 −0 tests/unit_tests/runtime/text_test.cpp
+1 −0 utils/no_op_factory.cpp

0 comments on commit 94ffd91

Please sign in to comment.