msvc: opengl header

This commit is contained in:
Recep Aslantas
2016-09-28 18:04:09 +03:00
parent e752f356a8
commit 6a00598144

View File

@@ -8,8 +8,26 @@
#ifndef cglm_mat_opengl_h #ifndef cglm_mat_opengl_h
#define cglm_mat_opengl_h #define cglm_mat_opengl_h
#ifdef __APPLE__
# include <OpenGL/gl3.h>
#else
# ifdef _WIN32
# include <windows.h>
# endif
# include <GL/gl.h>
#endif
#include "cglm.h" #include "cglm.h"
#ifdef _WIN32
extern
void
glUniformMatrix4fv(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat *value);
#endif
CGLM_INLINE CGLM_INLINE
void void
glm_mat4_uniform(mat4 m, GLint location){ glm_mat4_uniform(mat4 m, GLint location){