From 3ffca7a73340082d998e1fceb4e24bc1c0fa79e2 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sun, 9 Oct 2016 18:08:59 +0300 Subject: [PATCH] use native types instead GL* --- include/cglm-cam.h | 6 +++--- include/cglm-opengl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cglm-cam.h b/include/cglm-cam.h index ea2dca6..7872adf 100644 --- a/include/cglm-cam.h +++ b/include/cglm-cam.h @@ -65,7 +65,7 @@ glm_ortho(float left, CGLM_INLINE void glm_ortho_default(mat4 dest) { - GLint rect[4]; + int32_t rect[4]; float aspectRatio; glm_platfom_get_viewport_rect(rect); @@ -93,7 +93,7 @@ glm_ortho_default(mat4 dest) { CGLM_INLINE void glm_ortho_default_s(float size, mat4 dest) { - GLint rect[4]; + int32_t rect[4]; float aspectRatio; glm_platfom_get_viewport_rect(rect); @@ -142,7 +142,7 @@ glm_perspective(float fovy, CGLM_INLINE void glm_perspective_default(mat4 dest) { - GLint rect[4]; + int32_t rect[4]; glm_platfom_get_viewport_rect(rect); glm_perspective((float)M_PI_4, diff --git a/include/cglm-opengl.h b/include/cglm-opengl.h index 86b5ff1..605c2d0 100644 --- a/include/cglm-opengl.h +++ b/include/cglm-opengl.h @@ -13,7 +13,7 @@ CGLM_INLINE void -glm_mat4_uniform(mat4 m, GLint location){ +glm_mat4_uniform(mat4 m, int32_t location){ glm_platform_uniform_mat4fv(location, m[0]); }