diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-05 15:19:32 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-07 18:13:58 +0100 |
commit | 35c55dfe70767204597aeada2b3676825ce2bacc (patch) | |
tree | 934d087e7e320419d01f30f50bebe238c748f1a1 /src/gfx_func.h | |
parent | fa71375ec24e4bd8b324352581f7662cd46b82cb (diff) | |
download | openttd-35c55dfe70767204597aeada2b3676825ce2bacc.tar.xz |
Add: Filled polygon drawing function
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r-- | src/gfx_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index ea133acfc..3def1c85a 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -115,6 +115,7 @@ int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, void DrawCharCentered(uint32 c, int x, int y, TextColour colour); void GfxFillRect(int left, int top, int right, int bottom, int colour, FillRectMode mode = FILLRECT_OPAQUE); +void GfxFillPolygon(const std::vector<Point> &shape, int colour, FillRectMode mode = FILLRECT_OPAQUE); void GfxDrawLine(int left, int top, int right, int bottom, int colour, int width = 1, int dash = 0); void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3); |