summaryrefslogtreecommitdiffhomepage
path: root/src/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h
new file mode 100644
index 0000000..81ad5fa
--- /dev/null
+++ b/src/sprite.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "rodeo.h"
+
+typedef
+struct
+{
+ uint32_t iter;
+ struct config
+ {
+ uint32_t width;
+ uint32_t height;
+ uint32_t count;
+ rodeo_texture_2d_t *texture;
+ } config;
+}
+sprite_t;
+
+void
+draw_sprite(sprite_t *sprite, float x, float y, float scale);
+