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

[RenderPixi] Can't pass options for PIXI.WebGLRenderer #193

Closed
hideyukisaito opened this issue Jan 22, 2016 · 2 comments
Closed

[RenderPixi] Can't pass options for PIXI.WebGLRenderer #193

hideyukisaito opened this issue Jan 22, 2016 · 2 comments

Comments

@hideyukisaito
Copy link

In case of working with high density displays like retina, we have to pass the "resolution" (and optionally "autoResize") option to PIXI.WebGLRenderer. But it seems we don't have ways to pass it, or any other option values described in PIXI's document.

https:/liabru/matter-js/blob/master/src/render/RenderPixi.js#L53-L58

I think there should be all option parameters filled with default values and we should be able to overwrite them by passing a "options" argument for RenderPixi.create().

Thanks!

@liabru
Copy link
Owner

liabru commented Feb 7, 2016

You can now pass pixiOptions in your RenderPixi.create options (you could also pass a PIXI.WebGLRenderer instance in the options as renderer instead).

@hideyukisaito
Copy link
Author

@liabru Cool!! Thanks for the fix!

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

2 participants