diff options
| author | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-19 22:58:28 -0300 |
|---|---|---|
| committer | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-19 22:58:28 -0300 |
| commit | 14226c542d7d3d32fb52370deea20e3609cd2b4c (patch) | |
| tree | 6b0494fe41597e77481025cfa6f1cae93d929e2f /assets/src/gunner.h | |
| parent | 1f291678048efe0c117909ae7e2d2ec706377a23 (diff) | |
Pandora's box has been opened.
Diffstat (limited to 'assets/src/gunner.h')
| -rw-r--r-- | assets/src/gunner.h | 46 |
1 files changed, 46 insertions, 0 deletions
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 |
