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

Expose renderer for access to child components. #55

Open
Izzimach opened this issue Sep 28, 2016 · 0 comments
Open

Expose renderer for access to child components. #55

Izzimach opened this issue Sep 28, 2016 · 0 comments
Assignees

Comments

@Izzimach
Copy link
Owner

As referenced in #53 it would be nice to get better access to the renderer used in order to support rendering to textures. My (not totally fleshed out) possibility:

  • PIXIStage dumps the renderer (default or custom) into the context. Unfortunately this doesn't happen until after mounting, since the renderer needs access to the DOM canvas element.
  • Relevant child element 'subscribes' to the renderer in context.
  • When renderer gets created and dumped into the context this should trigger a re-render of most (or all?) child elements which can then check the context for the renderer and use it.

Kinda clunky, but then pixi was not written to play well with React so a perfect solution is probably impossible.

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

No branches or pull requests

1 participant