mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
use frustum namespace for frustum specific funcs
This commit is contained in:
@@ -50,7 +50,11 @@ glmc_lookat(vec3 eye,
|
|||||||
|
|
||||||
CGLM_EXPORT
|
CGLM_EXPORT
|
||||||
void
|
void
|
||||||
glmc_extract_planes(mat4 m, vec4 dest[6]);
|
glmc_frustum_planes(mat4 m, vec4 dest[6]);
|
||||||
|
|
||||||
|
CGLM_EXPORT
|
||||||
|
void
|
||||||
|
glmc_frustum_corners(mat4 invMat, vec4 dest[8]);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@@ -50,7 +50,8 @@
|
|||||||
float * __restrict farVal);
|
float * __restrict farVal);
|
||||||
CGLM_INLINE void glm_persp_decomp_far(mat4 proj, float * __restrict farVal);
|
CGLM_INLINE void glm_persp_decomp_far(mat4 proj, float * __restrict farVal);
|
||||||
CGLM_INLINE void glm_persp_decomp_near(mat4 proj, float *__restrict nearVal);
|
CGLM_INLINE void glm_persp_decomp_near(mat4 proj, float *__restrict nearVal);
|
||||||
CGLM_INLINE void glm_extract_planes(mat4 m, vec4 dest[6]);
|
CGLM_INLINE void glm_frustum_planes(mat4 m, vec4 dest[6]);
|
||||||
|
CGLM_INLINE void glm_frustum_corners(mat4 invMat, vec4 dest[8]);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef cglm_vcam_h
|
#ifndef cglm_vcam_h
|
||||||
@@ -444,7 +445,7 @@ glm_persp_decomp_near(mat4 proj, float * __restrict nearVal) {
|
|||||||
*/
|
*/
|
||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_extract_planes(mat4 m, vec4 dest[6]) {
|
glm_frustum_planes(mat4 m, vec4 dest[6]) {
|
||||||
mat4 t;
|
mat4 t;
|
||||||
|
|
||||||
glm_mat4_transpose_to(m, t);
|
glm_mat4_transpose_to(m, t);
|
||||||
|
10
src/cam.c
10
src/cam.c
@@ -69,6 +69,12 @@ glmc_lookat(vec3 eye,
|
|||||||
|
|
||||||
CGLM_EXPORT
|
CGLM_EXPORT
|
||||||
void
|
void
|
||||||
glmc_extract_planes(mat4 m, vec4 dest[6]) {
|
glmc_frustum_planes(mat4 m, vec4 dest[6]) {
|
||||||
glm_extract_planes(m, dest);
|
glm_frustum_planes(m, dest);
|
||||||
|
}
|
||||||
|
|
||||||
|
CGLM_EXPORT
|
||||||
|
void
|
||||||
|
glmc_frustum_corners(mat4 invMat, vec4 dest[8]) {
|
||||||
|
glm_frustum_corners(invMat, dest);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user