Preparing search index...
The search index is not available
glpower
glpower
GLPowerProgram
Class GLPowerProgram
Hierarchy
GLPowerProgram
Index
Constructors
constructor
Properties
gl
program
uniforms
vao
Methods
create
Shader
dispose
get
Program
getVAO
set
Shader
set
Uniform
update
Uniform
Locations
upload
Uniforms
use
Constructors
constructor
new GLPower
Program
(
gl
:
WebGL2RenderingContext
)
:
GLPowerProgram
Parameters
gl:
WebGL2RenderingContext
Returns
GLPowerProgram
Properties
gl
gl
:
WebGL2RenderingContext
program
program
:
null
|
WebGLProgram
Protected
uniforms
uniforms
:
Map
<
string
,
Uniform
>
Private
vao
vao
:
Map
<
string
,
GLPowerVAO
>
Methods
Protected
create
Shader
create
Shader
(
shaderSrc
:
string
, type
:
number
)
:
undefined
|
null
|
WebGLShader
Parameters
shaderSrc:
string
type:
number
Returns
undefined
|
null
|
WebGLShader
dispose
dispose
(
)
:
void
Returns
void
get
Program
get
Program
(
)
:
null
|
WebGLProgram
Returns
null
|
WebGLProgram
getVAO
getVAO
(
id
?:
string
)
:
null
|
GLPowerVAO
Parameters
id:
string
= '_'
Returns
null
|
GLPowerVAO
set
Shader
set
Shader
(
vertexShaderSrc
:
string
, fragmentShaderSrc
:
string
, opt
?:
ShaderOptions
)
:
undefined
|
GLPowerProgram
Parameters
vertexShaderSrc:
string
fragmentShaderSrc:
string
Optional
opt:
ShaderOptions
Returns
undefined
|
GLPowerProgram
set
Uniform
set
Uniform
(
name
:
string
, type
:
UniformType
, value
:
(
number
|
boolean
)
[]
)
:
void
Parameters
name:
string
type:
UniformType
value:
(
number
|
boolean
)
[]
Returns
void
Private
update
Uniform
Locations
update
Uniform
Locations
(
force
?:
boolean
)
:
void
Parameters
Optional
force:
boolean
Returns
void
upload
Uniforms
upload
Uniforms
(
)
:
void
Returns
void
use
use
(
cb
?:
(
(
program
:
GLPowerProgram
)
=>
void
)
)
:
void
Parameters
Optional
cb:
(
(
program
:
GLPowerProgram
)
=>
void
)
(
program
:
GLPowerProgram
)
:
void
Parameters
program:
GLPowerProgram
Returns
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
glpower
Bezier
Easings
ID
Maths
Types
Uniforms
Utils
GLPower
Program
constructor
gl
program
uniforms
vao
create
Shader
dispose
get
Program
getVAO
set
Shader
set
Uniform
update
Uniform
Locations
upload
Uniforms
use
Generated using
TypeDoc