diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 10:53:01 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-18 10:53:01 +0300 |
commit | ef297dafa84154d8f28f014410ab742f7994c557 (patch) | |
tree | ae092c965eb93ec855f6f833606d6904cefa263e /src/ui/paint.h | |
parent | 6a550da2b01921e66f49badff11ac6ab9b88cd21 (diff) |
Render target switching
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r-- | src/ui/paint.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h index 90c5f504..aafc7496 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); |