diff options
author | kdx <kikoodx@paranoici.org> | 2023-04-02 23:26:56 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-04-02 23:26:56 +0200 |
commit | d0cfe92ee80536be34bfaf2ce99dedcca87088d7 (patch) | |
tree | 7427ec52c6ac0714a3794a165ceae788d655c68b /headers | |
parent | e96c359a840974adea4d3d1d3445377f159ecdf0 (diff) | |
download | tzr-d0cfe92ee80536be34bfaf2ce99dedcca87088d7.tar.gz |
draw image flip x and flip y
Diffstat (limited to 'headers')
-rw-r--r-- | headers/TZR_render.h | 3 | ||||
-rw-r--r-- | headers/TZR_types.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/headers/TZR_render.h b/headers/TZR_render.h index 99132a2..48fd40d 100644 --- a/headers/TZR_render.h +++ b/headers/TZR_render.h @@ -53,7 +53,8 @@ int _TZR_DrawRectangle(const TZR_DrawRectangleArgs *args); * the framebuffer. */ #define TZR_DrawImage(...) _TZR_DrawImage(&(const TZR_DrawImageArgs){ \ .x=0, .y=0, .ix=0, .iy=0, .w=INT_MIN, .h=INT_MIN, .r=0.0f, .sx=1.0f, \ - .sy=1.0f, .center=false, ._=0, __VA_ARGS__ }) + .sy=1.0f, .center=false, .flip_x=false, .flip_y=false, ._=0, \ + __VA_ARGS__ }) #ifdef TZR_PARANOID [[nodiscard]] #endif diff --git a/headers/TZR_types.h b/headers/TZR_types.h index ea63f2d..044e30e 100644 --- a/headers/TZR_types.h +++ b/headers/TZR_types.h @@ -113,6 +113,8 @@ struct TZR_DrawImageArgs { float sx; float sy; bool center; + bool flip_x; + bool flip_y; }; struct TZR_DrawRectangleArgs { |