1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
---@class cc.DrawNode :cc.Node
local DrawNode={ }
cc.DrawNode=DrawNode
---* Draw an line from origin to destination with color. <br>
---* param origin The line origin.<br>
---* param destination The line destination.<br>
---* param color The line color.<br>
---* js NA
---@param origin vec2_table
---@param destination vec2_table
---@param color color4f_table
---@return self
function DrawNode:drawLine (origin,destination,color) end
---* When isolated is set, the position of the node is no longer affected by parent nodes.<br>
---* Which means it will be drawn just like a root node.
---@param isolated boolean
---@return self
function DrawNode:setIsolated (isolated) end
---@overload fun(vec2_table:vec2_table,vec2_table:vec2_table,vec2_table:vec2_table,vec2_table:vec2_table,color4f_table:color4f_table):self
---@overload fun(vec2_table:vec2_table,vec2_table:vec2_table,vec2_table2:color4f_table):self
---@param p1 vec2_table
---@param p2 vec2_table
---@param p3 vec2_table
---@param p4 vec2_table
---@param color color4f_table
---@return self
function DrawNode:drawRect (p1,p2,p3,p4,color) end
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,float4:color4f_table):self
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,float:float,float:float,color4f_table:color4f_table):self
---@param center vec2_table
---@param radius float
---@param angle float
---@param segments unsigned_int
---@param scaleX float
---@param scaleY float
---@param color color4f_table
---@return self
function DrawNode:drawSolidCircle (center,radius,angle,segments,scaleX,scaleY,color) end
---*
---@param lineWidth float
---@return self
function DrawNode:setLineWidth (lineWidth) end
---* draw a dot at a position, with a given radius and color. <br>
---* param pos The dot center.<br>
---* param radius The dot radius.<br>
---* param color The dot color.
---@param pos vec2_table
---@param radius float
---@param color color4f_table
---@return self
function DrawNode:drawDot (pos,radius,color) end
---* draw a segment with a radius and color. <br>
---* param from The segment origin.<br>
---* param to The segment destination.<br>
---* param radius The segment radius.<br>
---* param color The segment color.
---@param from vec2_table
---@param to vec2_table
---@param radius float
---@param color color4f_table
---@return self
function DrawNode:drawSegment (from,to,radius,color) end
---* Get the color mixed mode.<br>
---* lua NA
---@return cc.BlendFunc
function DrawNode:getBlendFunc () end
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,boolean:boolean,float5:color4f_table):self
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,boolean:boolean,float:float,float:float,color4f_table:color4f_table):self
---@param center vec2_table
---@param radius float
---@param angle float
---@param segments unsigned_int
---@param drawLineToCenter boolean
---@param scaleX float
---@param scaleY float
---@param color color4f_table
---@return self
function DrawNode:drawCircle (center,radius,angle,segments,drawLineToCenter,scaleX,scaleY,color) end
---* Draws a quad bezier path.<br>
---* param origin The origin of the bezier path.<br>
---* param control The control of the bezier path.<br>
---* param destination The destination of the bezier path.<br>
---* param segments The number of segments.<br>
---* param color Set the quad bezier color.
---@param origin vec2_table
---@param control vec2_table
---@param destination vec2_table
---@param segments unsigned_int
---@param color color4f_table
---@return self
function DrawNode:drawQuadBezier (origin,control,destination,segments,color) end
---* draw a triangle with color. <br>
---* param p1 The triangle vertex point.<br>
---* param p2 The triangle vertex point.<br>
---* param p3 The triangle vertex point.<br>
---* param color The triangle color.<br>
---* js NA
---@param p1 vec2_table
---@param p2 vec2_table
---@param p3 vec2_table
---@param color color4f_table
---@return self
function DrawNode:drawTriangle (p1,p2,p3,color) end
---* Set the color mixed mode.<br>
---* code<br>
---* When this function bound into js or lua,the parameter will be changed<br>
---* In js: var setBlendFunc(var src, var dst)<br>
---* endcode<br>
---* lua NA
---@param blendFunc cc.BlendFunc
---@return self
function DrawNode:setBlendFunc (blendFunc) end
---* Clear the geometry in the node's buffer.
---@return self
function DrawNode:clear () end
---* Draws a solid rectangle given the origin and destination point measured in points.<br>
---* The origin and the destination can not have the same x and y coordinate.<br>
---* param origin The rectangle origin.<br>
---* param destination The rectangle destination.<br>
---* param color The rectangle color.<br>
---* js NA
---@param origin vec2_table
---@param destination vec2_table
---@param color color4f_table
---@return self
function DrawNode:drawSolidRect (origin,destination,color) end
---*
---@return float
function DrawNode:getLineWidth () end
---* Draw a point.<br>
---* param point A Vec2 used to point.<br>
---* param pointSize The point size.<br>
---* param color The point color.<br>
---* js NA
---@param point vec2_table
---@param pointSize float
---@param color color4f_table
---@return self
function DrawNode:drawPoint (point,pointSize,color) end
---*
---@return boolean
function DrawNode:isIsolated () end
---* Draw a cubic bezier curve with color and number of segments<br>
---* param origin The origin of the bezier path.<br>
---* param control1 The first control of the bezier path.<br>
---* param control2 The second control of the bezier path.<br>
---* param destination The destination of the bezier path.<br>
---* param segments The number of segments.<br>
---* param color Set the cubic bezier color.
---@param origin vec2_table
---@param control1 vec2_table
---@param control2 vec2_table
---@param destination vec2_table
---@param segments unsigned_int
---@param color color4f_table
---@return self
function DrawNode:drawCubicBezier (origin,control1,control2,destination,segments,color) end
---* creates and initialize a DrawNode node.<br>
---* return Return an autorelease object.
---@return self
function DrawNode:create () end
---*
---@param renderer cc.Renderer
---@param transform mat4_table
---@param flags unsigned_int
---@return self
function DrawNode:draw (renderer,transform,flags) end
---*
---@param renderer cc.Renderer
---@param parentTransform mat4_table
---@param parentFlags unsigned_int
---@return self
function DrawNode:visit (renderer,parentTransform,parentFlags) end
---*
---@return boolean
function DrawNode:init () end
---*
---@return self
function DrawNode:DrawNode () end
|