TProgram
Implements
- IAsset
Index
Constructors
constructor
Returns default
Properties
publicattribLocations
publiccompiled
publicoptionalprogram
publicuniformLocations
publicoptionaluuid
Methods
publiccompile
Compile the current program given a GLContext
Parameters
gl: WebGL2RenderingContext
Returns void
publicgetAttributeLocations
Parameters
gl: WebGL2RenderingContext
attributes: string[]
Returns WebGLUniformLocation[]
publicgetUniformLocation
Parameters
gl: WebGL2RenderingContext
name: string
Returns WebGLUniformLocation
publicgetUniformOffsets
Parameters
gl: WebGL2RenderingContext
uniforms: string[]
Returns number[]
publicload
Parameters
response: Response
Returns Promise<void>
publicstaticfrom
Parameters
shader: TShader
Returns default
Boolean to save whether the program has been compiled yet.