mirror of
https://github.com/recp/cglm.git
synced 2026-01-03 22:22:11 +00:00
use native types instead GL*
This commit is contained in:
@@ -65,7 +65,7 @@ glm_ortho(float left,
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_ortho_default(mat4 dest) {
|
glm_ortho_default(mat4 dest) {
|
||||||
GLint rect[4];
|
int32_t rect[4];
|
||||||
float aspectRatio;
|
float aspectRatio;
|
||||||
|
|
||||||
glm_platfom_get_viewport_rect(rect);
|
glm_platfom_get_viewport_rect(rect);
|
||||||
@@ -93,7 +93,7 @@ glm_ortho_default(mat4 dest) {
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_ortho_default_s(float size, mat4 dest) {
|
glm_ortho_default_s(float size, mat4 dest) {
|
||||||
GLint rect[4];
|
int32_t rect[4];
|
||||||
float aspectRatio;
|
float aspectRatio;
|
||||||
|
|
||||||
glm_platfom_get_viewport_rect(rect);
|
glm_platfom_get_viewport_rect(rect);
|
||||||
@@ -142,7 +142,7 @@ glm_perspective(float fovy,
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_perspective_default(mat4 dest) {
|
glm_perspective_default(mat4 dest) {
|
||||||
GLint rect[4];
|
int32_t rect[4];
|
||||||
glm_platfom_get_viewport_rect(rect);
|
glm_platfom_get_viewport_rect(rect);
|
||||||
|
|
||||||
glm_perspective((float)M_PI_4,
|
glm_perspective((float)M_PI_4,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_mat4_uniform(mat4 m, GLint location){
|
glm_mat4_uniform(mat4 m, int32_t location){
|
||||||
glm_platform_uniform_mat4fv(location, m[0]);
|
glm_platform_uniform_mat4fv(location, m[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user