80e487554d6f3f65ec9db15e028bc8e14db879e9
[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 };
9
10 extern struct GLCaps glcaps;
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 int init_opengl(void);
17
18 int next_pow2(int x);
19
20 void dump_gl_texture(unsigned int tex, const char *fname);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif  /* OPENGL_H_ */