summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Technique.lua
blob: f38143a31ebc9ac06756f13dd04710b017f71257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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