pixi.renderers.webgl.WebGLRenderer
- type
- class
- implements
- pixi.renderers.IRenderer
- metadata
- :native
- "PIXI.WebGLRenderer"
Constructor
- parameters
[width=0]
{Float} the width of the canvas view
[height=0]
{Float} the height of the canvas view
[options]
{Object} The optional renderer parameters
[options.view]
{HTMLCanvasElement} the canvas to use as a view, optional
[options.transparent=false]
{Bool} If the render view is transparent, default false
[options.antialias=false]
{Bool} sets antialias (only applicable in chrome at the moment)
[options.preserveDrawingBuffer=false]
{Bool} enables drawing buffer preservation, enable this if you need to call toDataUrl on the webgl context
[options.resolution=1]
{Float} the resolution of the renderer retina would be 2
Instance Methods
- parameters
stage
{Stage} the Stage element to be rendered
- parameters
displayObject
{DisplayObject} The DisplayObject to render
projection
{Point} The projection
buffer
{Array} a standard WebGL buffer
- parameters
width
{Float} the new width of the webGL view
height
{Float} the new height of the webGL view
- parameters
texture
{Texture} the texture to update