From 52097b6ee7cc8f5a770eb851902560b5b8592218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 22 Feb 2021 21:05:36 +0800 Subject: add meta/3rd with acknowledgement --- meta/3rd/Cocos4.0/cc.ClippingNode.lua | 76 +++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 meta/3rd/Cocos4.0/cc.ClippingNode.lua (limited to 'meta/3rd/Cocos4.0/cc.ClippingNode.lua') diff --git a/meta/3rd/Cocos4.0/cc.ClippingNode.lua b/meta/3rd/Cocos4.0/cc.ClippingNode.lua new file mode 100644 index 00000000..8f8ca618 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ClippingNode.lua @@ -0,0 +1,76 @@ + +---@class cc.ClippingNode :cc.Node +local ClippingNode={ } +cc.ClippingNode=ClippingNode + + + + +---* If stencil has no children it will not be drawn.
+---* If you have custom stencil-based node with stencil drawing mechanics other then children-based,
+---* then this method should return true every time you wish stencil to be visited.
+---* By default returns true if has any children attached.
+---* return If you have custom stencil-based node with stencil drawing mechanics other then children-based,
+---* then this method should return true every time you wish stencil to be visited.
+---* By default returns true if has any children attached.
+---* js NA +---@return boolean +function ClippingNode:hasContent () end +---* Set the ClippingNode whether or not invert.
+---* 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.
+---* 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.
+---* The content is drawn only where the stencil have pixel with alpha greater than the alphaThreshold.
+---* Should be a float between 0 and 1.
+---* This default to 1 (so alpha test is disabled).
+---* 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.
+---* 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.
+---* The stencil node will be retained.
+---* This default to nil.
+---* return The stencil node. +---@return cc.Node +function ClippingNode:getStencil () end +---* Set the alpha threshold.
+---* param alphaThreshold The alpha threshold. +---@param alphaThreshold float +---@return self +function ClippingNode:setAlphaThreshold (alphaThreshold) end +---* Inverted. If this is set to true,
+---* the stencil is inverted, so the content is drawn where the stencil is NOT drawn.
+---* This default to false.
+---* 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 -- cgit v1.2.3