move extracting planes to camera header

* since it related to view frustum / camera it should be in thie header or separate header called frustum.h
* update LICENSE to add authors of algorithm
This commit is contained in:
Recep Aslantas
2017-12-30 13:55:17 +03:00
parent d14627ac52
commit 99669a21a4
7 changed files with 60 additions and 43 deletions

View File

@@ -66,3 +66,9 @@ glmc_lookat(vec3 eye,
mat4 dest) {
glm_lookat(eye, center, up, dest);
}
CGLM_EXPORT
void
glmc_extract_planes(mat4 m, vec4 dest[6]) {
glm_extract_planes(m, dest);
}

View File

@@ -13,9 +13,3 @@ void
glmc_plane_normalize(vec4 plane) {
glm_plane_normalize(plane);
}
CGLM_EXPORT
void
glmc_plane_extract(mat4 projView, vec4 dest[6]) {
glm_plane_extract(projView, dest);
}