diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-12-09 13:01:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 13:01:50 +0100 |
commit | 114f97ff110aa0b5c54ea1c8279b21dc73c5efc8 (patch) | |
tree | 065ed6b74f7e0171c1bc9f8d94fcee2f01d7f7cb /scene/2d | |
parent | e48d1b3f518d24a5ff0cb7f636c07162873fa63e (diff) | |
parent | 2c048ea16429cfa4e6b200a4fe519ee9db7c3f99 (diff) |
Merge pull request #44128 from KoBeWi/🧹
Cleanup unused engine code
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/line_builder.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index f1522dbaeb..e0116d9bad 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -459,39 +459,6 @@ void LineBuilder::strip_begin(Vector2 up, Vector2 down, Color color, float uvx) _last_index[DOWN] = vi + 1; } -void LineBuilder::strip_new_quad(Vector2 up, Vector2 down, Color color, float uvx) { - int vi = vertices.size(); - - vertices.push_back(vertices[_last_index[UP]]); - vertices.push_back(vertices[_last_index[DOWN]]); - vertices.push_back(up); - vertices.push_back(down); - - if (_interpolate_color) { - colors.push_back(color); - colors.push_back(color); - colors.push_back(color); - colors.push_back(color); - } - - if (texture_mode != Line2D::LINE_TEXTURE_NONE) { - uvs.push_back(uvs[_last_index[UP]]); - uvs.push_back(uvs[_last_index[DOWN]]); - uvs.push_back(Vector2(uvx, UP)); - uvs.push_back(Vector2(uvx, DOWN)); - } - - indices.push_back(vi); - indices.push_back(vi + 3); - indices.push_back(vi + 1); - indices.push_back(vi); - indices.push_back(vi + 2); - indices.push_back(vi + 3); - - _last_index[UP] = vi + 2; - _last_index[DOWN] = vi + 3; -} - void LineBuilder::strip_add_quad(Vector2 up, Vector2 down, Color color, float uvx) { int vi = vertices.size(); |