fix unproject, add tests to project/unproject

This commit is contained in:
Recep Aslantas
2018-04-03 12:27:20 +03:00
parent eb527e39b4
commit 63acfd681e
6 changed files with 63 additions and 15 deletions

View File

@@ -15,11 +15,15 @@ extern "C" {
CGLM_EXPORT
void
glmc_unprojecti(mat4 invMat, vec4 vp, vec3 coord, vec3 dest);
glmc_unprojecti(vec3 pos, mat4 invMat, vec4 vp, vec3 dest);
CGLM_EXPORT
void
glmc_unproject(mat4 m, vec4 vp, vec3 coord, vec3 dest);
glmc_unproject(vec3 pos, mat4 m, vec4 vp, vec3 dest);
CGLM_EXPORT
void
glmc_project(vec3 pos, mat4 m, vec4 vp, vec3 dest);
#ifdef __cplusplus
}