sprite icon indicating copy to clipboard operation
sprite copied to clipboard

Rethink hierarchial design

Open bvssvni opened this issue 11 years ago • 4 comments

The way it currently works, is each Sprite having children. When it renders, it renders first the parent and then the children. Each Sprite stores a Uuid.

bvssvni avatar Oct 11 '14 11:10 bvssvni

I would like to remove the Uuid and children from Sprite and store this information externally in Scene.

bvssvni avatar Oct 11 '14 11:10 bvssvni

The order the sprites are rendered should be determined by a flat list, such that one can reorder them without having to change the hierarchy.

bvssvni avatar Oct 11 '14 11:10 bvssvni

I would like to avoid storing Uuid in Sprite, since it is used as Rc<Sprite>.

bvssvni avatar Oct 11 '14 11:10 bvssvni

Perhaps it would be better to use Rc<Texture> instead and just store Vec<Sprite> in Scene.

bvssvni avatar Oct 11 '14 12:10 bvssvni