397cd382bfcf3245dae8e3df7c8d499265176507
[ld42_outofspace] / src / opengl.h
1 #ifndef OPENGL_H_
2 #define OPENGL_H_
3
4 #include <GL/glew.h>
5
6 struct GLCaps {
7         int debug;      /* ARB_debug_output */
8         int max_aniso;
9 };
10
11 extern struct GLCaps glcaps;
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 int init_opengl(void);
18
19 int next_pow2(int x);
20
21 void dump_gl_texture(unsigned int tex, const char *fname);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif  /* OPENGL_H_ */