Nikow Posted August 27, 2015 Share Posted August 27, 2015 Hi,How could i know if my canvas is on webgl or canvas render mode ? Thanks ! Link to comment Share on other sites More sharing options...
stupot Posted August 27, 2015 Share Posted August 27, 2015 Test game.renderType, it will be equal to one of these: Phaser.HEADLESS Phaser.CANVAS Phaser.AUTO Phaser.WEBGL Nikow 1 Link to comment Share on other sites More sharing options...
tips4design Posted August 27, 2015 Share Posted August 27, 2015 Open the JavaScript console and it will say something like this: Phaser v2.4.3-RC1 | Pixi.js v2.2.8 | Canvas | WebAudio Link to comment Share on other sites More sharing options...
Nikow Posted August 27, 2015 Author Share Posted August 27, 2015 Open the JavaScript console and it will say something like this: Phaser v2.4.3-RC1 | Pixi.js v2.2.8 | Canvas | WebAudio Yes... I saw.... I need to keep it in the code... Link to comment Share on other sites More sharing options...
Nikow Posted August 27, 2015 Author Share Posted August 27, 2015 Test game.renderType, it will be equal to one of these: Phaser.HEADLESS Phaser.CANVAS Phaser.AUTO Phaser.WEBGLIt's return 1 for canvas ans 2 for webgl , it s looks like perfect jdnichollsc and Nikow 2 Link to comment Share on other sites More sharing options...
Recommended Posts