bevy/pipelined/bevy_sprite2/src
Daniel McNab 5fe73be2b5 Sprite change image (#3207)
# Objective

- Changing the underlying image would not update a sprite

## Solution

- 'Detect' if the underlying image changes to update the sprite

Currently, we don't support change detection on `RenderAssets`, so we have to manually check it. 
This method at least maintains the bind groups when the image isn't changing. They were cached, so I assume that's important.

This gives us correct behaviour here.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-12-01 23:09:31 +00:00
..
render Sprite change image (#3207) 2021-12-01 23:09:31 +00:00
bundle.rs Frustum culling (#2861) 2021-11-07 21:45:52 +00:00
dynamic_texture_atlas_builder.rs change texture atlas sprite indexing to usize (#2887) 2021-11-01 21:28:50 +00:00
lib.rs Sprite change image (#3207) 2021-12-01 23:09:31 +00:00
rect.rs Add sprite atlases into the new renderer. (#2560) 2021-08-04 01:16:25 +00:00
sprite.rs Merge New Renderer 2021-11-22 23:57:42 -08:00
texture_atlas.rs Merge New Renderer 2021-11-22 23:57:42 -08:00
texture_atlas_builder.rs use correct size of pixel instead of 4 (#2977) 2021-10-28 23:10:45 +00:00