summaryrefslogtreecommitdiff
path: root/src/ui/paint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r--src/ui/paint.h12
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
10struct Impl_Paint { 10struct Impl_Paint {
11 iWindow *dst; 11 iWindow *dst;
12 SDL_Texture *oldTarget;
12}; 13};
13 14
14void init_Paint (iPaint *); 15void init_Paint (iPaint *);
15 16
16void setClip_Paint (iPaint *, iRect rect); 17void beginTarget_Paint (iPaint *, SDL_Texture *target);
17void unsetClip_Paint (iPaint *); 18void endTarget_Paint (iPaint *);
19
20void setClip_Paint (iPaint *, iRect rect);
21void unsetClip_Paint (iPaint *);
18 22
19void drawRect_Paint (const iPaint *, iRect rect, int color); 23void drawRect_Paint (const iPaint *, iRect rect, int color);
20void drawRectThickness_Paint (const iPaint *, iRect rect, int thickness, int color); 24void 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) {
31iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { 35iLocalDef 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
39iInt2 size_SDLTexture (SDL_Texture *);