From ed248e655236699bdeae473a602b2c74b2f47fa7 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 18 Jun 2023 23:09:00 -0400 Subject: implement drawing rotated sprites --- include/rodeo/gfx.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/rodeo/gfx.h') diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h index 5ca19b0..afa99a2 100644 --- a/include/rodeo/gfx.h +++ b/include/rodeo/gfx.h @@ -3,6 +3,7 @@ // -- internal -- // public #include "rodeo/gfx_t.h" +#include "rodeo/math/vec2_t.h" // -- external -- #include "stc/cstr.h" @@ -56,6 +57,7 @@ rodeo_gfx_texture_2d_destroy(rodeo_gfx_texture_2d_t texture); void rodeo_gfx_rectangle_draw( const rodeo_rectangle_t rectangle, + const float turns, const rodeo_color_RGBAFloat_t color ); @@ -84,6 +86,8 @@ void rodeo_gfx_texture_2d_draw( const rodeo_rectangle_t destination, const rodeo_rectangle_t source, + const float turns, + const rodeo_math_vec2_t origin, const rodeo_color_RGBAFloat_t color, const rodeo_gfx_texture_2d_t texture ); -- cgit v1.2.3