2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module DrawNode
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
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
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- draw a quadratic bezier curve with color and number of segments
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] drawQuadraticBezier
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table from
|
|
|
|
-- @param #vec2_table control
|
|
|
|
-- @param #vec2_table to
|
|
|
|
-- @param #unsigned int segments
|
|
|
|
-- @param #color4f_table color
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] onDraw
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #mat4_table transform
|
|
|
|
-- @param #unsigned int flags
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Clear the geometry in the node's buffer.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] clear
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- draw a triangle with color
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] drawTriangle
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table p1
|
|
|
|
-- @param #vec2_table p2
|
|
|
|
-- @param #vec2_table p3
|
|
|
|
-- @param #color4f_table color
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- draw a dot at a position, with a given radius and color
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] drawDot
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table pos
|
|
|
|
-- @param #float radius
|
|
|
|
-- @param #color4f_table color
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- draw a cubic bezier curve with color and number of segments
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] drawCubicBezier
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table from
|
|
|
|
-- @param #vec2_table control1
|
|
|
|
-- @param #vec2_table control2
|
|
|
|
-- @param #vec2_table to
|
|
|
|
-- @param #unsigned int segments
|
|
|
|
-- @param #color4f_table color
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- draw a segment with a radius and color
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] drawSegment
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table from
|
|
|
|
-- @param #vec2_table to
|
|
|
|
-- @param #float radius
|
|
|
|
-- @param #color4f_table color
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- creates and initialize a DrawNode node
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#DrawNode] create
|
|
|
|
-- @param self
|
|
|
|
-- @return DrawNode#DrawNode ret (return value: cc.DrawNode)
|
|
|
|
|
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=#DrawNode] draw
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #mat4_table transform
|
|
|
|
-- @param #unsigned int flags
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|