2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module GLProgramState
|
|
|
|
-- @extend Ref
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: setUniformTexture(string, unsigned int)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformTexture(string, cc.Texture2D)
|
|
|
|
--
|
2014-06-27 16:31:17 +08:00
|
|
|
-- overload function: setUniformTexture(int, cc.Texture2D)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformTexture(int, unsigned int)
|
|
|
|
--
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramState] setUniformTexture
|
|
|
|
-- @param self
|
2014-06-27 16:31:17 +08:00
|
|
|
-- @param #int int
|
|
|
|
-- @param #unsigned int int
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-06-27 16:31:17 +08:00
|
|
|
-- overload function: setUniformMat4(int, mat4_table)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformMat4(string, mat4_table)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GLProgramState] setUniformMat4
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #mat4_table mat4
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-06-29 16:45:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] applyUniforms
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] applyGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #mat4_table mat4
|
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getUniformCount
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
2014-06-29 16:45:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] applyAttributes
|
|
|
|
-- @param self
|
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
2014-06-27 16:31:17 +08:00
|
|
|
-- overload function: setUniformFloat(int, float)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformFloat(string, float)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GLProgramState] setUniformFloat
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @param #float float
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
2014-06-27 16:31:17 +08:00
|
|
|
-- overload function: setUniformVec3(int, vec3_table)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformVec3(string, vec3_table)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GLProgramState] setUniformVec3
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec3_table vec3
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
2014-06-29 16:45:14 +08:00
|
|
|
-- overload function: setUniformInt(int, int)
|
2014-06-27 16:31:17 +08:00
|
|
|
--
|
2014-06-29 16:45:14 +08:00
|
|
|
-- overload function: setUniformInt(string, int)
|
2014-06-27 16:31:17 +08:00
|
|
|
--
|
2014-06-29 16:45:14 +08:00
|
|
|
-- @function [parent=#GLProgramState] setUniformInt
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-06-29 16:45:14 +08:00
|
|
|
-- @param #int int
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getVertexAttribCount
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-06-29 16:45:14 +08:00
|
|
|
-- overload function: setUniformVec4(int, vec4_table)
|
2014-06-27 16:31:17 +08:00
|
|
|
--
|
2014-06-29 16:45:14 +08:00
|
|
|
-- overload function: setUniformVec4(string, vec4_table)
|
2014-06-27 16:31:17 +08:00
|
|
|
--
|
2014-06-29 16:45:14 +08:00
|
|
|
-- @function [parent=#GLProgramState] setUniformVec4
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-06-29 16:45:14 +08:00
|
|
|
-- @param #vec4_table vec4
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-06-29 16:45:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] setGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
2014-06-27 16:31:17 +08:00
|
|
|
-- overload function: setUniformVec2(int, vec2_table)
|
|
|
|
--
|
|
|
|
-- overload function: setUniformVec2(string, vec2_table)
|
|
|
|
--
|
|
|
|
-- @function [parent=#GLProgramState] setUniformVec2
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #vec2_table vec2
|
2014-06-27 16:31:17 +08:00
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getVertexAttribsFlags
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] apply
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @param #mat4_table mat4
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @return GLProgram#GLProgram ret (return value: cc.GLProgram)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
|
|
|
-- @return GLProgramState#GLProgramState ret (return value: cc.GLProgramState)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getOrCreateWithGLProgramName
|
|
|
|
-- @param self
|
|
|
|
-- @param #string str
|
|
|
|
-- @return GLProgramState#GLProgramState ret (return value: cc.GLProgramState)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#GLProgramState] getOrCreateWithGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
|
|
|
-- @return GLProgramState#GLProgramState ret (return value: cc.GLProgramState)
|
|
|
|
|
|
|
|
return nil
|