graphene
diff src/opengl.h @ 1:f85a59195206
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 24 Jul 2015 01:28:00 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/opengl.h Fri Jul 24 01:28:00 2015 +0300 1.3 @@ -0,0 +1,27 @@ 1.4 +#ifndef GPH_OPENGL_H_ 1.5 +#define GPH_OPENGL_H_ 1.6 + 1.7 +#include <GL/glew.h> 1.8 + 1.9 +namespace gph { 1.10 + 1.11 +extern struct GLCaps { 1.12 + char *version, *renderer, *vendor; 1.13 + int max_tex_units; 1.14 + int max_tex_size; 1.15 + int max_samples; 1.16 + float max_aniso; 1.17 + int max_mrt; 1.18 + bool sdr; 1.19 + char *sdr_ver; 1.20 + bool fbo; 1.21 + bool tex_float; 1.22 + bool npow2_tex; 1.23 + bool fsaa; 1.24 +} glcaps; 1.25 + 1.26 +bool init_opengl(); 1.27 + 1.28 +} // namespace gph 1.29 + 1.30 +#endif /* GPH_OPENGL_H_ */