graphene

view src/opengl.h @ 3:d71b4e899e08

minimal matrix and vec4
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 25 Jul 2015 05:52:39 +0300
parents
children
line source
1 #ifndef GPH_OPENGL_H_
2 #define GPH_OPENGL_H_
4 #include <GL/glew.h>
6 namespace gph {
8 extern struct GLCaps {
9 char *version, *renderer, *vendor;
10 int max_tex_units;
11 int max_tex_size;
12 int max_samples;
13 float max_aniso;
14 int max_mrt;
15 bool sdr;
16 char *sdr_ver;
17 bool fbo;
18 bool tex_float;
19 bool npow2_tex;
20 bool fsaa;
21 } glcaps;
23 bool init_opengl();
25 } // namespace gph
27 #endif /* GPH_OPENGL_H_ */