TProgram
Implements
- IAsset
Index
Constructors
Properties
Methods
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
publicload
Parameters
response: Response
Returns Promise<void>
Boolean to save whether the program has been compiled yet.