diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
commit | 52097b6ee7cc8f5a770eb851902560b5b8592218 (patch) | |
tree | 6dcbb53ac0104912e950747a37aac6b25039e862 /meta/3rd/Cocos4.0/cc.Technique.lua | |
parent | 6839cd530c53387df4d5db61f0cb2e5ed1a87298 (diff) | |
download | lua-language-server-52097b6ee7cc8f5a770eb851902560b5b8592218.zip |
add meta/3rd with acknowledgement
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.Technique.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.Technique.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Technique.lua b/meta/3rd/Cocos4.0/cc.Technique.lua new file mode 100644 index 00000000..f38143a3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Technique.lua @@ -0,0 +1,43 @@ + +---@class cc.Technique :cc.Ref +local Technique={ } +cc.Technique=Technique + + + + +---* Returns the number of Passes in the Technique +---@return int +function Technique:getPassCount () end +---* +---@param material cc.Material +---@return self +function Technique:setMaterial (material) end +---* Returns a new clone of the Technique +---@return self +function Technique:clone () end +---* Adds a new pass to the Technique.<br> +---* Order matters. First added, first rendered +---@param pass cc.Pass +---@return self +function Technique:addPass (pass) end +---* Returns the list of passes +---@return array_table +function Technique:getPasses () end +---* Returns the name of the Technique +---@return string +function Technique:getName () end +---* Returns the Pass at given index +---@param index int +---@return cc.Pass +function Technique:getPassByIndex (index) end +---* Creates a new Technique with a GLProgramState.<br> +---* Method added to support legacy code +---@param parent cc.Material +---@param state cc.backend.ProgramState +---@return self +function Technique:createWithProgramState (parent,state) end +---* +---@param parent cc.Material +---@return self +function Technique:create (parent) end
\ No newline at end of file |