summaryrefslogtreecommitdiff
path: root/include/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu.h')
-rw-r--r--include/gpu.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/gpu.h b/include/gpu.h
index ceba781..5e10d1e 100644
--- a/include/gpu.h
+++ b/include/gpu.h
@@ -20,6 +20,7 @@
#define TA_GPU_H
#include <stdbool.h>
+#include "color.h"
#include "ta_sdl.h"
extern SDL_GPUDevice *ta_gpu_device;
@@ -33,6 +34,13 @@ extern SDL_GPUTextureFormat ta_gpu_swapchain_format;
void ta_gpu_init(void);
void ta_gpu_start_frame(void);
+void ta_gpu_draw_filled_rectangle(ta_color color, int x, int y, int width, int height);
+void ta_gpu_draw_rectangle(ta_color color, int x, int y, int width, int height, int thickness);
+void ta_gpu_draw_line(ta_color color, int x1, int y1, int x2, int y2, int thickness);
+void ta_gpu_draw_circle(ta_color color, int x, int y, int radius, int thickness);
+void ta_gpu_draw_filled_circle(ta_color color, int x, int y, int radius);
+void ta_gpu_draw_triangle(ta_color color, int x1, int y1, int x2, int y2, int x3, int y3, int thickness);
+void ta_gpu_draw_filled_triangle(ta_color color, int x1, int y1, int x2, int y2, int x3, int y3);
void ta_gpu_end_frame(void);
-#endif // TA_RENDERER_H \ No newline at end of file
+#endif // TA_GPU_H \ No newline at end of file