summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.ClippingNode.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.ClippingNode.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.ClippingNode.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.ClippingNode.lua77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.ClippingNode.lua b/meta/3rd/Cocos4.0/library/cc.ClippingNode.lua
new file mode 100644
index 00000000..b21396a2
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.ClippingNode.lua
@@ -0,0 +1,77 @@
+---@meta
+
+---@class cc.ClippingNode :cc.Node
+local ClippingNode={ }
+cc.ClippingNode=ClippingNode
+
+
+
+
+---* If stencil has no children it will not be drawn.<br>
+---* If you have custom stencil-based node with stencil drawing mechanics other then children-based,<br>
+---* then this method should return true every time you wish stencil to be visited.<br>
+---* By default returns true if has any children attached.<br>
+---* return If you have custom stencil-based node with stencil drawing mechanics other then children-based,<br>
+---* then this method should return true every time you wish stencil to be visited.<br>
+---* By default returns true if has any children attached.<br>
+---* js NA
+---@return boolean
+function ClippingNode:hasContent () end
+---* Set the ClippingNode whether or not invert.<br>
+---* param inverted A bool Type,to set the ClippingNode whether or not invert.
+---@param inverted boolean
+---@return self
+function ClippingNode:setInverted (inverted) end
+---* Set the Node to use as a stencil to do the clipping.<br>
+---* param stencil The Node to use as a stencil to do the clipping.
+---@param stencil cc.Node
+---@return self
+function ClippingNode:setStencil (stencil) end
+---* The alpha threshold.<br>
+---* The content is drawn only where the stencil have pixel with alpha greater than the alphaThreshold.<br>
+---* Should be a float between 0 and 1.<br>
+---* This default to 1 (so alpha test is disabled).<br>
+---* return The alpha threshold value,Should be a float between 0 and 1.
+---@return float
+function ClippingNode:getAlphaThreshold () end
+---* Initializes a clipping node with an other node as its stencil.<br>
+---* The stencil node will be retained, and its parent will be set to this clipping node.
+---@param stencil cc.Node
+---@return boolean
+function ClippingNode:init (stencil) end
+---* The Node to use as a stencil to do the clipping.<br>
+---* The stencil node will be retained.<br>
+---* This default to nil.<br>
+---* return The stencil node.
+---@return cc.Node
+function ClippingNode:getStencil () end
+---* Set the alpha threshold. <br>
+---* param alphaThreshold The alpha threshold.
+---@param alphaThreshold float
+---@return self
+function ClippingNode:setAlphaThreshold (alphaThreshold) end
+---* Inverted. If this is set to true,<br>
+---* the stencil is inverted, so the content is drawn where the stencil is NOT drawn.<br>
+---* This default to false.<br>
+---* return If the clippingNode is Inverted, it will be return true.
+---@return boolean
+function ClippingNode:isInverted () end
+---@overload fun(cc.Node:cc.Node):self
+---@overload fun():self
+---@param stencil cc.Node
+---@return self
+function ClippingNode:create (stencil) end
+---*
+---@param mask unsigned short
+---@param applyChildren boolean
+---@return self
+function ClippingNode:setCameraMask (mask,applyChildren) end
+---*
+---@param renderer cc.Renderer
+---@param parentTransform mat4_table
+---@param parentFlags unsigned_int
+---@return self
+function ClippingNode:visit (renderer,parentTransform,parentFlags) end
+---* Initializes a clipping node without a stencil.
+---@return boolean
+function ClippingNode:init () end \ No newline at end of file