projects
/
ld42_outofspace
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tesselation
[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
int max_tess_level;
10
};
11
12
extern struct GLCaps glcaps;
13
14
#ifdef __cplusplus
15
extern "C" {
16
#endif
17
18
int init_opengl(void);
19
20
int next_pow2(int x);
21
22
void dump_gl_texture(unsigned int tex, const char *fname);
23
24
#ifdef __cplusplus
25
}
26
#endif
27
28
#endif /* OPENGL_H_ */