Class: GLProgram


Helper class to create a WebGL Program

new PIXI.GLProgram (program, uniformData)

Makes a new Pixi program

Name Type Description
program WebGLProgram

webgl program

uniformData Object



program WebGLProgram

The shader program

uniformData Object

holds the uniform data which contains uniform locations and current uniform values used for caching and preventing unneeded GPU commands

uniformGroups Object

uniformGroups holds the various upload functions for the shader. Each uniform group and program have a unique upload function generated.


destroy () void

Destroys this program