mirror of https://github.com/axmolengine/axmol.git
74 lines
2.4 KiB
Lua
74 lines
2.4 KiB
Lua
|
|
--------------------------------
|
|
-- @module Lens3D
|
|
-- @extend Grid3DAction
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- brief Set the center position of lens effect.<br>
|
|
-- param 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 Set whether lens is concave.<br>
|
|
-- param concave Whether lens is concave.
|
|
-- @function [parent=#Lens3D] setConcave
|
|
-- @param self
|
|
-- @param #bool concave
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
|
|
|
--------------------------------
|
|
-- brief Set the value of lens effect.<br>
|
|
-- param lensEffect The value of lens effect will be set.
|
|
-- @function [parent=#Lens3D] setLensEffect
|
|
-- @param self
|
|
-- @param #float lensEffect
|
|
-- @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)
|
|
|
|
--------------------------------
|
|
-- brief Get the value of lens effect. Default value is 0.7.<br>
|
|
-- return The value of lens effect.
|
|
-- @function [parent=#Lens3D] getLensEffect
|
|
-- @param self
|
|
-- @return float#float ret (return value: float)
|
|
|
|
--------------------------------
|
|
-- 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.
|
|
-- @function [parent=#Lens3D] create
|
|
-- @param self
|
|
-- @param #float duration
|
|
-- @param #size_table gridSize
|
|
-- @param #vec2_table position
|
|
-- @param #float radius
|
|
-- @return Lens3D#Lens3D ret (return value: cc.Lens3D)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Lens3D] clone
|
|
-- @param self
|
|
-- @return Lens3D#Lens3D ret (return value: cc.Lens3D)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Lens3D] update
|
|
-- @param self
|
|
-- @param #float time
|
|
-- @return Lens3D#Lens3D self (return value: cc.Lens3D)
|
|
|
|
return nil
|