mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
someitmes we need to project z only. this function reduces a few calculations and parameters.
40 lines
769 B
C
40 lines
769 B
C
/*
|
|
* Copyright (c), Recep Aslantas.
|
|
*
|
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
|
* Full license can be found in the LICENSE file
|
|
*/
|
|
|
|
#include "../include/cglm/cglm.h"
|
|
#include "../include/cglm/call.h"
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_unprojecti(vec3 pos, mat4 invMat, vec4 vp, vec3 dest) {
|
|
glm_unprojecti(pos, invMat, vp, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_unproject(vec3 pos, mat4 m, vec4 vp, vec3 dest) {
|
|
glm_unproject(pos, m, vp, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_project(vec3 pos, mat4 m, vec4 vp, vec3 dest) {
|
|
glm_project(pos, m, vp, dest);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
float
|
|
glmc_project_z(vec3 pos, mat4 m) {
|
|
return glm_project_z(pos, m);
|
|
}
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_pickmatrix(vec2 center, vec2 size, vec4 vp, mat4 dest) {
|
|
glm_pickmatrix(center, size, vp, dest);
|
|
}
|