Skip to content

How to draw a color-filled irregular shape #2478

Answered by chriscamacho
Wu-Haitao asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wu-Haitao
Comment options

Answer selected by Wu-Haitao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants