summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/gfx.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-18 23:09:00 -0400
committerrealtradam <[email protected]>2023-06-18 23:09:00 -0400
commited248e655236699bdeae473a602b2c74b2f47fa7 (patch)
tree56c03da4655fc8f8c9f72afa39f74838df57de82 /include/rodeo/gfx.h
parent77337049740437d1f707018c862fc2d891f29abf (diff)
downloadRodeoKit-ed248e655236699bdeae473a602b2c74b2f47fa7.tar.gz
RodeoKit-ed248e655236699bdeae473a602b2c74b2f47fa7.zip
implement drawing rotated sprites
Diffstat (limited to 'include/rodeo/gfx.h')
-rw-r--r--include/rodeo/gfx.h4
1 files changed, 4 insertions, 0 deletions
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
);