borisvanschooten / glesjs

Fast and small Android WebGL bindings for V8.
http://tmtg.net/glesjs/
Other
151 stars 29 forks source link

Scaling in Phaser does not work #4

Open DaveSmart opened 9 years ago

DaveSmart commented 9 years ago

The following code in Phaser does not work. The standard Phaser tutorials look tiny in the bottom left corner of a mobile phone or tablet and need to be scalable to fill the whole screen.

game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.setScreenSize( true );

borisvanschooten commented 9 years ago

Gles.js currently does not support scaling the Canvas element. This requires rendering to an off-screen texture which is then rendered scaled to the screen. In case no scaling is needed, direct rendering provides a performance enhancement which is significant in some cases. If you use upscaling to improve performance however, then canvas scaling is probably the best solution. I think canvas scaling should be an optional feature.

Pengeszikra commented 9 years ago

Which version of Phaser work with glesjs ?

At first i try with pixi ( latest version ) - but that is don't run. After i try pixi v1.5.3 pixi.dev.js from your old example, and that is work fine.