diff options
| author | Rémi Verschelde | 2017-02-13 15:46:17 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-13 15:46:17 +0100 |
| commit | ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378 (patch) | |
| tree | 65ed57ff55cadd49b881e248e2f87331ca5eee28 /scene/resources/surface_tool.cpp | |
| parent | f6859fd31b5c3cc1a112b7f77b3c1783df8c8919 (diff) | |
| parent | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (diff) | |
| download | godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.tar.gz godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.tar.zst godot-ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378.zip | |
Diffstat (limited to 'scene/resources/surface_tool.cpp')
| -rw-r--r-- | scene/resources/surface_tool.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index 1d0d32354..cf07f1658 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -862,25 +862,25 @@ void SurfaceTool::clear() { void SurfaceTool::_bind_methods() { - ClassDB::bind_method(_MD("begin","primitive"),&SurfaceTool::begin); - ClassDB::bind_method(_MD("add_vertex","vertex"),&SurfaceTool::add_vertex); - ClassDB::bind_method(_MD("add_color","color"),&SurfaceTool::add_color); - ClassDB::bind_method(_MD("add_normal","normal"),&SurfaceTool::add_normal); - ClassDB::bind_method(_MD("add_tangent","tangent"),&SurfaceTool::add_tangent); - ClassDB::bind_method(_MD("add_uv","uv"),&SurfaceTool::add_uv); - ClassDB::bind_method(_MD("add_uv2","uv2"),&SurfaceTool::add_uv2); - ClassDB::bind_method(_MD("add_bones","bones"),&SurfaceTool::add_bones); - ClassDB::bind_method(_MD("add_weights","weights"),&SurfaceTool::add_weights); - ClassDB::bind_method(_MD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group); - ClassDB::bind_method(_MD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>())); - ClassDB::bind_method(_MD("set_material","material:Material"),&SurfaceTool::set_material); - ClassDB::bind_method(_MD("index"),&SurfaceTool::index); - ClassDB::bind_method(_MD("deindex"),&SurfaceTool::deindex); - ///ClassDB::bind_method(_MD("generate_flat_normals"),&SurfaceTool::generate_flat_normals); - ClassDB::bind_method(_MD("generate_normals"),&SurfaceTool::generate_normals); - ClassDB::bind_method(_MD("add_index", "index"), &SurfaceTool::add_index); - ClassDB::bind_method(_MD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant())); - ClassDB::bind_method(_MD("clear"),&SurfaceTool::clear); + ClassDB::bind_method(D_METHOD("begin","primitive"),&SurfaceTool::begin); + ClassDB::bind_method(D_METHOD("add_vertex","vertex"),&SurfaceTool::add_vertex); + ClassDB::bind_method(D_METHOD("add_color","color"),&SurfaceTool::add_color); + ClassDB::bind_method(D_METHOD("add_normal","normal"),&SurfaceTool::add_normal); + ClassDB::bind_method(D_METHOD("add_tangent","tangent"),&SurfaceTool::add_tangent); + ClassDB::bind_method(D_METHOD("add_uv","uv"),&SurfaceTool::add_uv); + ClassDB::bind_method(D_METHOD("add_uv2","uv2"),&SurfaceTool::add_uv2); + ClassDB::bind_method(D_METHOD("add_bones","bones"),&SurfaceTool::add_bones); + ClassDB::bind_method(D_METHOD("add_weights","weights"),&SurfaceTool::add_weights); + ClassDB::bind_method(D_METHOD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group); + ClassDB::bind_method(D_METHOD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>())); + ClassDB::bind_method(D_METHOD("set_material","material:Material"),&SurfaceTool::set_material); + ClassDB::bind_method(D_METHOD("index"),&SurfaceTool::index); + ClassDB::bind_method(D_METHOD("deindex"),&SurfaceTool::deindex); + ///ClassDB::bind_method(D_METHOD("generate_flat_normals"),&SurfaceTool::generate_flat_normals); + ClassDB::bind_method(D_METHOD("generate_normals"),&SurfaceTool::generate_normals); + ClassDB::bind_method(D_METHOD("add_index", "index"), &SurfaceTool::add_index); + ClassDB::bind_method(D_METHOD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("clear"),&SurfaceTool::clear); } |
