ruffle/render/src
Aaron Hill bdadb17a95 render: Don't use BitmapHandle in tessellator
Currently, we rely on ShapeTessellator being able to get a BitmapHandle
without a RenderBackend. With the upcoming BitmapData refactor,
we will always need a RenderBackend to get a BitmapHandle, which creates
borrow-checker issues in ShapeTessellator (which is stored in a
RenderBackend).

To solve this, we split BitmapSource.bitmap into two methods -
BitmapSource.bitmap and BitmapSource.bitmap_handle. ShapeTessellator
continues to use BitmapSource.bitmap, and uses the u16 bitmap id
instead of a BitmapHandle. The BitmapSource.bitmap_handle method
is used inside each render backend to convert the id to a BitmapHandle,
avoiding borrow-checker issues.
2022-11-21 21:04:40 -07:00
..
backend render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
backend.rs render: Improve support for BitmapData.draw 2022-10-17 12:53:38 -05:00
bitmap.rs render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
bounding_box.rs swf: Extract `Rectangle` to a separate file 2022-09-25 10:37:56 +03:00
color_transform.rs core: `ColorTransform` cleanup 2022-09-23 11:10:12 +03:00
commands.rs render: Introduced render commands, moved to a command list model instead of direct rendering 2022-09-11 09:07:53 +02:00
error.rs render: Treat `update_texture` with invalid `BitmapHandle` as an error 2022-09-16 22:03:15 -06:00
lib.rs render: Introduced render commands, moved to a command list model instead of direct rendering 2022-09-11 09:07:53 +02:00
matrix.rs render: Moved Matrix from core to render 2022-08-14 18:38:14 -07:00
shape_utils.rs swf: Extract `Rectangle` to a separate file 2022-09-25 10:37:56 +03:00
tessellator.rs render: Don't use BitmapHandle in tessellator 2022-11-21 21:04:40 -07:00
transform.rs render: Remove `gc-arena` dependency 2022-09-02 09:49:18 -07:00
utils.rs render: Random cleanups 2022-09-22 03:00:02 +03:00