X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fopengl.h;h=c34238427b4c346483efd2eec88de4a298d66a51;hp=deeddd3392dc27c597ef5c9e92bc0d1b33043c58;hb=da8e3a1dd04a5ac29bcaa9582430c58a769ac571;hpb=ae60a8cb1a30e204e7f60969fe6245e510cca0ff diff --git a/src/opengl.h b/src/opengl.h index deeddd3..c342384 100644 --- a/src/opengl.h +++ b/src/opengl.h @@ -3,4 +3,23 @@ #include -#endif // OPENGL_H_ +struct GLCaps { + int debug; /* ARB_debug_output */ + int draw_range; /* EXT_draw_range_elements */ +}; + +extern struct GLCaps glcaps; + +#ifdef __cplusplus +extern "C" { +#endif + +int init_opengl(void); + +void dump_gl_texture(unsigned int tex, const char *fname); + +#ifdef __cplusplus +} +#endif + +#endif /* OPENGL_H_ */