aboutsummaryrefslogtreecommitdiff
path: root/assets/src/gunner.h
blob: cbcbe87349c864395edf30e021665ab068622b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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);