Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rethink hierarchial design #31

Open
bvssvni opened this issue Oct 11, 2014 · 4 comments
Open

Rethink hierarchial design #31

bvssvni opened this issue Oct 11, 2014 · 4 comments

Comments

@bvssvni
Copy link
Member

bvssvni commented Oct 11, 2014

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
Copy link
Member Author

bvssvni commented Oct 11, 2014

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

@bvssvni
Copy link
Member Author

bvssvni commented Oct 11, 2014

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
Copy link
Member Author

bvssvni commented Oct 11, 2014

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

@bvssvni
Copy link
Member Author

bvssvni commented Oct 11, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant