add unproject function

This commit is contained in:
Recep Aslantas
2018-03-08 13:02:33 +03:00
parent cfab79e546
commit 29996d0bdd
7 changed files with 148 additions and 0 deletions

21
src/project.c Normal file
View File

@@ -0,0 +1,21 @@
/*
* 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(mat4 invMat, vec4 vp, vec3 coord, vec3 dest) {
glm_unprojecti(invMat, vp, coord, dest);
}
CGLM_EXPORT
void
glmc_unproject(mat4 m, vec2 vp, vec3 coord, vec3 dest) {
glm_unproject(m, vp, coord, dest);
}