summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.Technique.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.Technique.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Technique.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.Technique.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Technique.lua b/meta/3rd/Cocos4.0/library/cc.Technique.lua
new file mode 100644
index 00000000..0c21dd2c
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.Technique.lua
@@ -0,0 +1,44 @@
+---@meta
+
+---@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