From 14226c542d7d3d32fb52370deea20e3609cd2b4c Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Wed, 19 Jul 2023 22:58:28 -0300 Subject: Pandora's box has been opened. --- assets/src/gunner.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 assets/src/gunner.h (limited to 'assets/src/gunner.h') diff --git a/assets/src/gunner.h b/assets/src/gunner.h new file mode 100644 index 0000000..cbcbe87 --- /dev/null +++ b/assets/src/gunner.h @@ -0,0 +1,46 @@ +#pragma once + +// Defines + +typedef struct{ + unsigned char r; + unsigned char g; + unsigned char b; + unsigned char a; +}Color; + +#define BLACK (Color){0, 0, 0, 255} + +// Texture + +void init_tex_sys(void); + +int load_new_tex(const char* path); + +void draw_texture(int idx, int x, int y); + +void update_textures(void); + +void unload_tex(int idx); + +void unload_active_textures(void); + +// Shader + +void init_shader_sys(void); + +int load_new_shader(const char* path); + +void set_active_shader(int idx); + +void update_shaders(void); + +void reset_active_shader(void); + +void unload_shader(int idx); + +void unload_active_shaders(void); + +// Text + +void draw_text(const char* txt, int x, int y, int size, Color col); \ No newline at end of file -- cgit v1.2.3