diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 14:23:12 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 14:23:12 +0300 |
commit | 8ed2faadc4ca2497fc3b2e9d2eae6d40921de918 (patch) | |
tree | 7153efb6d6fadba0bd213cd72b57e95a41861776 /src/ui/paint.h | |
parent | 9aa25106b76b0e9ab77fe405c9a0039efd67f016 (diff) | |
parent | 2d6d6cd513b8de36971545834212f927fa4e27dc (diff) |
Merge branch 'master' of skyjake.fi:skyjake/lagrange
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r-- | src/ui/paint.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h index 90c5f504..5b29b176 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h | |||
@@ -9,12 +9,16 @@ iDeclareType(Paint) | |||
9 | 9 | ||
10 | struct Impl_Paint { | 10 | struct Impl_Paint { |
11 | iWindow *dst; | 11 | iWindow *dst; |
12 | SDL_Texture *oldTarget; | ||
12 | }; | 13 | }; |
13 | 14 | ||
14 | void init_Paint (iPaint *); | 15 | void init_Paint (iPaint *); |
15 | 16 | ||
16 | void setClip_Paint (iPaint *, iRect rect); | 17 | void beginTarget_Paint (iPaint *, SDL_Texture *target); |
17 | void unsetClip_Paint (iPaint *); | 18 | void endTarget_Paint (iPaint *); |
19 | |||
20 | void setClip_Paint (iPaint *, iRect rect); | ||
21 | void unsetClip_Paint (iPaint *); | ||
18 | 22 | ||
19 | void drawRect_Paint (const iPaint *, iRect rect, int color); | 23 | void drawRect_Paint (const iPaint *, iRect rect, int color); |
20 | void drawRectThickness_Paint (const iPaint *, iRect rect, int thickness, int color); | 24 | void drawRectThickness_Paint (const iPaint *, iRect rect, int thickness, int color); |
@@ -31,3 +35,5 @@ iLocalDef void drawHLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { | |||
31 | iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { | 35 | iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { |
32 | drawLine_Paint(d, pos, addY_I2(pos, len), color); | 36 | drawLine_Paint(d, pos, addY_I2(pos, len), color); |
33 | } | 37 | } |
38 | |||
39 | iInt2 size_SDLTexture (SDL_Texture *); | ||