axmol/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua

76 lines
2.4 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module ClippingNode
-- @extend Node
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- If stencil has no childre 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.
-- @function [parent=#ClippingNode] hasContent
2014-03-10 14:04:58 +08:00
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ClippingNode] setInverted
-- @param self
-- @param #bool inverted
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ClippingNode] setStencil
-- @param self
-- @param #cc.Node stencil
2014-03-10 14:04:58 +08:00
--------------------------------
-- 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).
2014-03-10 14:04:58 +08:00
-- @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.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ClippingNode] getStencil
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ClippingNode] setAlphaThreshold
-- @param self
-- @param #float alphaThreshold
2014-03-10 14:04:58 +08:00
--------------------------------
-- 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)
2014-03-10 14:04:58 +08:00
--------------------------------
-- @overload self, cc.Node
-- @overload self
2014-03-10 14:04:58 +08:00
-- @function [parent=#ClippingNode] create
-- @param self
-- @param #cc.Node stencil
-- @return ClippingNode#ClippingNode ret (return value: cc.ClippingNode)
2014-03-10 14:04:58 +08:00
--------------------------------
--
-- @function [parent=#ClippingNode] visit
-- @param self
-- @param #cc.Renderer renderer
-- @param #mat4_table parentTransform
-- @param #unsigned int parentFlags
2014-03-10 14:04:58 +08:00
return nil