Closed kvark closed 9 years ago
@csherratt - could you show me where and how you organize entities in SnowMew? I need to understand the use case better.
We just need to move the major part of Scene::draw
body into a separate function.
Hmm... a standalone function is not implementable in a fun way. It needs to accept an iterator over entities, which requires a lifetime, which get required by each of the involved traits and their associated types. The declaration would cover the whole code page...
Currently, a scene has
Vec<Entity>
in it. It would be great to allow the user to provide it's own container there, so our interfaces only take an immutable iterator of theEntity
.