|
function | create (local name, local vsPath, local fsPath) |
|
function | createWithProgram (local name, local program) |
|
function | createWithString (local name, local vShader, local fShader) |
|
function | getInfo () |
|
function | getProgram () |
|
function | getProgramState () |
|
function | getRenderMode () |
|
function | getUniformNames () |
|
function | setColor (local uniform, local value) |
|
function | setFloat (local uniform, local value) |
|
function | setMat4 (local uniform, local value) |
|
function | setScreenSize (local size) |
|
function | setTexture (local uniform, local value) |
|
function | setVec2 (local uniform, local value) |
|
function | setVec3 (local uniform, local value) |
|
function | setVec4 (local uniform, local value) |
|
function | setViewport (local vp) |
|
function | getInfo () |
|
function | getName () |
|
function | getPath () |
|
function | getType () |
|
◆ create()
- Parameters
-
name | string |
vsPath | string |
fsPath | string |
- Returns
- lstg.ResFX
◆ createWithProgram()
- Parameters
-
name | string |
program | ccb.Program |
- Returns
- lstg.ResFX
◆ createWithString()
- Parameters
-
name | string |
vShader | string |
fShader | string |
- Returns
- lstg.ResFX
◆ getInfo()
◆ getProgram()
◆ getProgramState()
◆ getRenderMode()
◆ getUniformNames()
◆ setColor()
- Parameters
-
uniform | string |
value | color4b_table |
- Returns
- lstg.ResFX
◆ setFloat()
- Parameters
-
uniform | string |
value | number |
- Returns
- lstg.ResFX
◆ setMat4()
- Parameters
-
uniform | string |
value | mat4_table |
- Returns
- lstg.ResFX
◆ setScreenSize()
◆ setTexture()
- Parameters
-
uniform | string |
value | cc.Texture2D |
- Returns
- lstg.ResFX
◆ setVec2()
- Parameters
-
uniform | string |
value | vec2_table |
- Returns
- lstg.ResFX
◆ setVec3()
- Parameters
-
uniform | string |
value | vec3_table |
- Returns
- lstg.ResFX
◆ setVec4()
- Parameters
-
uniform | string |
value | vec4_table |
- Returns
- lstg.ResFX
◆ setViewport()
The documentation for this class was generated from the following file: