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

Supplying custom renderer doesn't work properly? #60

Open
ShayDavidson opened this issue Oct 30, 2016 · 1 comment
Open

Supplying custom renderer doesn't work properly? #60

ShayDavidson opened this issue Oct 30, 2016 · 1 comment
Assignees

Comments

@ShayDavidson
Copy link

I'm struggling supplying my own renderer to the Stage in other to solve oblems with textures until this is resolved: #55.

The problem I'm facing is that React doesn't mount the canvas element I supply to the renderer (or the one it automatically generates). Setting the view on the renderer after creation itself as well doesn't work.

Did this work at any time? Am I missing doing it properly?

@Izzimach Izzimach self-assigned this Nov 8, 2016
@Izzimach
Copy link
Owner

Izzimach commented Nov 8, 2016

At the moment if you pass a custom renderer into PIXIStage it will assume that you've bound it to a canvas that was created outside of the normal React flow. So yes, you have to create your own canvas, create a renderer, and pass that into the PIXIStage

I would guess you want to render to a texture that you've created? There could be an (optional) additional prop to pass in to specify the render texture for that, if that's what you want. But it's currently not supported.

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

2 participants