How to draw a color-filled irregular shape #2478
-
Just curious if there is a way of drawing a color-filled irregular shape? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointsCount, Color tint); // Draw a textured polygon the down side of this is that it is only suitable for shapes where there is a unobstructed line between the centre points and the points defining the polygon, theres a name for that sort of poly but I can't bring it to mind! |
Beta Was this translation helpful? Give feedback.
void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointsCount, Color tint); // Draw a textured polygon
the down side of this is that it is only suitable for shapes where there is a unobstructed line between the centre points and the points defining the polygon, theres a name for that sort of poly but I can't bring it to mind!