tavli

diff src/opengl.h @ 16:d6209903454b

opengl capabilities
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 28 Jun 2015 08:48:25 +0300
parents 52e0dd47753b
children 986c0b76513f
line diff
     1.1 --- a/src/opengl.h	Sun Jun 28 08:34:24 2015 +0300
     1.2 +++ b/src/opengl.h	Sun Jun 28 08:48:25 2015 +0300
     1.3 @@ -3,4 +3,21 @@
     1.4  
     1.5  #include <GL/glew.h>
     1.6  
     1.7 +struct GLCaps {
     1.8 +	int shaders;
     1.9 +	int fsaa;
    1.10 +	int sep_spec;
    1.11 +};
    1.12 +extern struct GLCaps glcaps;
    1.13 +
    1.14 +#ifdef __cplusplus
    1.15 +extern "C" {
    1.16 +#endif
    1.17 +
    1.18 +int init_opengl();
    1.19 +
    1.20 +#ifdef __cplusplus
    1.21 +}
    1.22 +#endif
    1.23 +
    1.24  #endif	/* OPENGL_H_ */