diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-11 17:50:59 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-11 17:50:59 -0700 |
| commit | c081f624ebf24c3f752b3833690cf29aa7cb2259 (patch) | |
| tree | 6b3bd86b3ad79e20b050fe5dfc6a9920f0db0c21 /include/gpu.h | |
| parent | a113b3569b2d6c621219cf51e0b761f84fd40f29 (diff) | |
Add 2D shapes
Diffstat (limited to 'include/gpu.h')
| -rw-r--r-- | include/gpu.h | 10 |
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 |