intravenous
view src/tex.h @ 6:2723dc026c4f
collision detection
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 23 Apr 2012 21:43:10 +0300 |
parents | |
children |
line source
1 #ifndef TEX_H_
2 #define TEX_H_
4 #ifdef __cplusplus
5 extern "C" {
6 #define TEX_DEFARG(arg, val) arg = val
7 #else
8 #define TEX_DEFARG(arg, val) arg
9 #endif
11 unsigned int load_texture(const char *fname);
12 void free_texture(unsigned int tex);
14 void bind_texture(unsigned int tex, int TEX_DEFARG(tex_unit, 0));
15 void bind_texture_cube(unsigned int tex, int TEX_DEFARG(tex_unit, 0));
17 #ifdef __cplusplus
18 }
19 #endif
21 #endif /* TEX_H_ */