diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-16 15:15:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 15:15:51 +0200 |
commit | 78d09a41639ec2c2f1e44541bd696058795a61c5 (patch) | |
tree | fe58858260af89d31bd595261f17884f077c1de2 /doc | |
parent | bc5ba1c266050aa4aa746cfc3ede4634e692a5dc (diff) | |
parent | 430d1fd79544906e9b55092441f2f446948cbf2e (diff) |
Merge pull request #37903 from Xrayez/shape-2d-draw-bind
Bind Shape2D draw method
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Shape2D.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/Shape2D.xml b/doc/classes/Shape2D.xml index 9e913cb44d..5f41d05816 100644 --- a/doc/classes/Shape2D.xml +++ b/doc/classes/Shape2D.xml @@ -74,6 +74,17 @@ This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test onto the other object ([code]shape_motion[/code]). </description> </method> + <method name="draw"> + <return type="void"> + </return> + <argument index="0" name="canvas_item" type="RID"> + </argument> + <argument index="1" name="color" type="Color"> + </argument> + <description> + Draws a solid shape onto a [CanvasItem] with the [RenderingServer] API filled with the specified [code]color[/code]. The exact drawing method is specific for each shape and cannot be configured. + </description> + </method> </methods> <members> <member name="custom_solver_bias" type="float" setter="set_custom_solver_bias" getter="get_custom_solver_bias" default="0.0"> |