diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-22 12:56:11 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-10-22 12:56:17 +0200 |
commit | fc09e1436654415f7130b69d049b420d7e5e8d54 (patch) | |
tree | 4a925d13db9392d51886545586d78b97973cc584 /doc/classes/SurfaceTool.xml | |
parent | 14b1741cbf998f6d950a006681b15803362442d7 (diff) | |
download | redot-engine-fc09e1436654415f7130b69d049b420d7e5e8d54.tar.gz |
classref: Sync with current source
Also fix hyperlink references to same class as per the guidelines.
[ci skip]
Diffstat (limited to 'doc/classes/SurfaceTool.xml')
-rw-r--r-- | doc/classes/SurfaceTool.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/SurfaceTool.xml b/doc/classes/SurfaceTool.xml index 1e91ee402b..987a725977 100644 --- a/doc/classes/SurfaceTool.xml +++ b/doc/classes/SurfaceTool.xml @@ -4,7 +4,7 @@ Helper tool to create geometry. </brief_description> <description> - The [SurfaceTool] is used to construct a [Mesh] by specifying vertex attributes individually. It can be used to construct a [Mesh] from script. All properties except index need to be added before a call to [method add_vertex]. For example adding vertex colors and UVs looks like + The [code]SurfaceTool[/code] is used to construct a [Mesh] by specifying vertex attributes individually. It can be used to construct a [Mesh] from script. All properties except index need to be added before a call to [method add_vertex]. For example adding vertex colors and UVs looks like [codeblock] var st = SurfaceTool.new() st.begin(Mesh.PRIMITIVE_TRIANGLES) @@ -12,7 +12,7 @@ st.add_uv(Vector2(0, 0)) st.add_vertex(Vector3(0, 0, 0)) [/codeblock] - The [SurfaceTool] now contains one vertex of a triangle which has a UV coordinate and a specified [Color]. If another vertex were added without calls to [method add_uv] or [method add_color] then the last values would be used. + The [code]SurfaceTool[/code] now contains one vertex of a triangle which has a UV coordinate and a specified [Color]. If another vertex were added without calls to [method add_uv] or [method add_color] then the last values would be used. It is very important that vertex attributes are passed [b]before[/b] the call to [method add_vertex], failure to do this will result in an error when committing the vertex information to a mesh. </description> <tutorials> |