Fix typo
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 2m27s

This commit is contained in:
2025-02-13 21:49:32 -05:00
parent c5490cb321
commit ae84a68e11
2 changed files with 2 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ namespace JGL::J2D {
/// @param color A 3-or-4 channel color value. @see class Color3, class Color4
/// @param tri The triangle defined by its vertices (A, B, and C).
void FillTriangle(const Color4& color, const Triangle2D& tri);
void FIllTriangle(const Color4& color, const Vector2& triA, const Vector2& triB, const Vector2& triC);
void FillTriangle(const Color4& color, const Vector2& triA, const Vector2& triB, const Vector2& triC);
/// Fills a triangle defined by the provided vertices with a gradient that transitions smoothly between the three specified colors at each corner.
/// @param a_color The color at vertex A of the triangle.

View File

@@ -1012,7 +1012,7 @@ void J2D::DrawPoints(const Color4& color, const Vector2* points, int num_points,
glColor4fv(default_state.draw_color);
}
void J2D::FIllTriangle(const Color4& color, const Vector2& triA, const Vector2& triB, const Vector2& triC) {
void J2D::FillTriangle(const Color4& color, const Vector2& triA, const Vector2& triB, const Vector2& triC) {
FillTriangle(color, {triA, triB, triC});
}