diff options
Diffstat (limited to 'src/TZR.h')
-rw-r--r-- | src/TZR.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -119,6 +119,8 @@ struct TZR_DrawImageArgs { float sx; float sy; bool center; + bool flip_x; + bool flip_y; }; struct TZR_DrawRectangleArgs { @@ -271,7 +273,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 @@ -317,4 +320,4 @@ int TZR_ShouldQuit(void); unsigned long TZR_GetTick(void); -/* commit hash: e96c359a840974adea4d3d1d3445377f159ecdf0 */ +/* commit hash: d0cfe92ee80536be34bfaf2ce99dedcca87088d7 */ |