2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Lens3D
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Grid3DAction
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Set whether lens is concave.<br>
|
|
|
|
-- param concave Whether lens is concave.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Lens3D] setConcave
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool concave
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Initializes the action with center position, radius, grid size and duration.<br>
|
|
|
|
-- param duration Specify the duration of the Lens3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param position Specify the center position of the lens effect.<br>
|
|
|
|
-- param radius Specify the radius of the lens effect.<br>
|
|
|
|
-- return If the initialization success, return true; otherwise, return false.
|
|
|
|
-- @function [parent=#Lens3D] initWithDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #vec2_table position
|
|
|
|
-- @param #float radius
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Set the value of lens effect.<br>
|
|
|
|
-- param lensEffect The value of lens effect will be set.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Lens3D] setLensEffect
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float lensEffect
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Get the value of lens effect. Default value is 0.7.<br>
|
|
|
|
-- return The value of lens effect.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Lens3D] getLensEffect
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Set the center position of lens effect.<br>
|
|
|
|
-- param position The center position will be set.
|
|
|
|
-- @function [parent=#Lens3D] setPosition
|
|
|
|
-- @param self
|
|
|
|
-- @param #vec2_table position
|
|
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- brief Get the center position of lens effect.<br>
|
|
|
|
-- return The center position of lens effect.
|
|
|
|
-- @function [parent=#Lens3D] getPosition
|
|
|
|
-- @param self
|
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Create the action with center position, radius, a grid size and duration.<br>
|
|
|
|
-- param duration Specify the duration of the Lens3D action. It's a value in seconds.<br>
|
|
|
|
-- param gridSize Specify the size of the grid.<br>
|
|
|
|
-- param position Specify the center position of the lens.<br>
|
|
|
|
-- param radius Specify the radius of the lens.<br>
|
|
|
|
-- return If the creation sucess, return a pointer of Lens3D action; otherwise, return nil.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Lens3D] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #size_table gridSize
|
|
|
|
-- @param #vec2_table position
|
|
|
|
-- @param #float radius
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Lens3D#Lens3D ret (return value: cc.Lens3D)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Lens3D] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return Lens3D#Lens3D ret (return value: cc.Lens3D)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Lens3D] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float time
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Lens3D] Lens3D
|
|
|
|
-- @param self
|
|
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|