From 6a0059814435280e1aa676175fdcf24c510d547f Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Wed, 28 Sep 2016 18:04:09 +0300 Subject: [PATCH] msvc: opengl header --- include/cglm-opengl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/cglm-opengl.h b/include/cglm-opengl.h index c1aa863..ecb42db 100644 --- a/include/cglm-opengl.h +++ b/include/cglm-opengl.h @@ -8,8 +8,26 @@ #ifndef cglm_mat_opengl_h #define cglm_mat_opengl_h +#ifdef __APPLE__ +# include +#else +# ifdef _WIN32 +# include +# endif +# include +#endif + #include "cglm.h" +#ifdef _WIN32 +extern +void +glUniformMatrix4fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +#endif + CGLM_INLINE void glm_mat4_uniform(mat4 m, GLint location){