separate ecs render event by cameras

This commit is contained in:
2020-01-21 03:32:32 +07:00
parent 771ab9008a
commit aa0d0fda15
21 changed files with 289 additions and 107 deletions

View File

@@ -32,11 +32,11 @@ namespace
}
};
class camera_system final : public systems::render_system {
class camera_system final : public systems::post_update_system {
public:
void process(
ecs::registry& owner,
const systems::render_event& event) override
const systems::post_update_event& event) override
{
E2D_UNUSED(event);
owner.for_joined_components<camera>(