WebGLRenderer#WebGLRenderer

new WebGLRenderer(game)

The WebGLRenderer draws the stage and all its content onto a webGL enabled canvas. This renderer
should be used for browsers that support webGL. This Render works by automatically managing webGLBatchs.
So no need for Sprite Batches or Sprite Clouds.
Don't forget to add the view to your DOM or you will not see anything :)

Parameters
Name Type Description
game PhaserGame

A reference to the Phaser Game instance

Source code: pixi/renderers/webgl/WebGLRenderer.js (Line 8)
doc_phaser
2017-02-14 11:20:19
Comments
Leave a Comment

Please login to continue.