WebGLRenderer

Class: PIXI.WebGLRenderer

Constructor

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: 登录查看完整内容