-->

PIXI. PrimitiveShader

new PrimitiveShader(gl)

Parameters:
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 5

Members

fragmentSrc :Array

The fragment shader.

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 32

gl :WebGLContext

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 19

program :Object

The WebGL program.

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 25

vertexSrc :Array

The vertex shader.

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 46

Methods

destroy()

Destroys the shader.

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 105

init()

Initialises the shader.

Source - pixi/renderers/webgl/shaders/PrimitiveShader.js, line 75
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:21 GMT+0100 (BST) using the DocStrap template.