ShaderBank
ShaderBank class
Constructor Summary
Public Constructor | ||
public |
constructor |
Method Summary
Public Methods | ||
public |
get registered shader of given name |
|
public |
getShaderOfContext(name: string, context: WebGLContext): WebGLShader get registered shader of given name and context |
|
public |
registShader(shader: WebGLShader): void regist shader |
Public Constructors
Public Methods
public getShader(name: string): WebGLShader source
get registered shader of given name
Params:
Name | Type | Attribute | Description |
name | string | name of shader |
Return:
WebGLShader | shader object |
public getShaderOfContext(name: string, context: WebGLContext): WebGLShader source
get registered shader of given name and context
Params:
Name | Type | Attribute | Description |
name | string | name of shader |
|
context | WebGLContext | context of shader |
Return:
WebGLShader | shader object |
public registShader(shader: WebGLShader): void source
regist shader
Params:
Name | Type | Attribute | Description |
shader | WebGLShader | shader |
Return:
void |