3dphotoshoot
diff src/texture.h @ 21:4ca4e3c5a754
port to C++ completed, shader programs now use the SdrProg class
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 11 Jun 2015 04:56:33 +0300 |
parents | aef7f51f6397 |
children |
line diff
1.1 --- a/src/texture.h Thu Jun 11 02:53:43 2015 +0300 1.2 +++ b/src/texture.h Thu Jun 11 04:56:33 2015 +0300 1.3 @@ -7,9 +7,17 @@ 1.4 int img_width, img_height; /* in case we have a smaller image in a pow2 texture */ 1.5 }; 1.6 1.7 +#ifdef __cplusplus 1.8 +extern "C" { 1.9 +#endif 1.10 + 1.11 int load_texture(struct texture *tex, const char *fname); 1.12 struct texture *get_texture(const char *fname); 1.13 1.14 int gen_debug_texture(struct texture *tex); 1.15 1.16 +#ifdef __cplusplus 1.17 +} 1.18 +#endif 1.19 + 1.20 #endif /* TEXTURE_H_ */