mirror of https://github.com/axmolengine/axmol.git
67 lines
1.9 KiB
Lua
67 lines
1.9 KiB
Lua
|
|
--------------------------------
|
|
-- @module ClippingNode
|
|
-- @extend Node
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- 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.
|
|
-- @function [parent=#ClippingNode] isInverted
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ClippingNode] setInverted
|
|
-- @param self
|
|
-- @param #bool inverted
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ClippingNode] setStencil
|
|
-- @param self
|
|
-- @param #cc.Node stencil
|
|
|
|
--------------------------------
|
|
-- 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).
|
|
-- @function [parent=#ClippingNode] getAlphaThreshold
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- The Node to use as a stencil to do the clipping.<br>
|
|
-- The stencil node will be retained.<br>
|
|
-- This default to nil.
|
|
-- @function [parent=#ClippingNode] getStencil
|
|
-- @param self
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ClippingNode] setAlphaThreshold
|
|
-- @param self
|
|
-- @param #float alphaThreshold
|
|
|
|
--------------------------------
|
|
-- @overload self, cc.Node
|
|
-- @overload self
|
|
-- @function [parent=#ClippingNode] create
|
|
-- @param self
|
|
-- @param #cc.Node stencil
|
|
-- @return ClippingNode#ClippingNode ret (retunr value: cc.ClippingNode)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#ClippingNode] visit
|
|
-- @param self
|
|
-- @param #cc.Renderer renderer
|
|
-- @param #mat4_table parentTransform
|
|
-- @param #unsigned int parentFlags
|
|
|
|
return nil
|