From c081f624ebf24c3f752b3833690cf29aa7cb2259 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Fri, 11 Sep 2026 17:50:59 -0700 Subject: Add 2D shapes --- include/gpu.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') 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 +#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 -- cgit v1.2.3