diff options
| author | Le Juez Victor <[email protected]> | 2024-06-23 22:51:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-23 22:51:24 +0200 |
| commit | 7e50270d496762e7202b61e26ba1c42c47161c4e (patch) | |
| tree | 3b66d46b310c9e27d7a34ed759da559077442e70 /src/raylib.h | |
| parent | 77732540225eabb0ff659710167315265401c772 (diff) | |
| download | raylib-7e50270d496762e7202b61e26ba1c42c47161c4e.tar.gz raylib-7e50270d496762e7202b61e26ba1c42c47161c4e.zip | |
[rtextures] Adding triangle drawing function for images (#4094)
* adding triangle drawing function for images
* remove unnecessary check
* fix an iteration mistake
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 9f06462f..7195fd55 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1381,6 +1381,11 @@ RLAPI void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int hei RLAPI void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color); // Draw rectangle within an image (Vector version) RLAPI void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color); // Draw rectangle within an image RLAPI void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color); // Draw rectangle lines within an image +RLAPI void ImageDrawTriangle(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle within an image +RLAPI void ImageDrawTriangleEx(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3); // Draw triangle with interpolated colors within an image +RLAPI void ImageDrawTriangleLines(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle outline within an image +RLAPI void ImageDrawTriangleFan(Image *dst, Vector2 *points, int pointCount, Color color); // Draw a triangle fan defined by points within an image (first vertex is the center) +RLAPI void ImageDrawTriangleStrip(Image *dst, Vector2 *points, int pointCount, Color color); // Draw a triangle strip defined by points within an image RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); // Draw a source image within a destination image (tint applied to source) RLAPI void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) within an image (destination) RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text (custom sprite font) within an image (destination) |
