Files
cglm/include/cglm/call/frustum.h
T
Daniel Pirch 44b6d7f332 add const to function parameters where possible
- Adds `const` qualifiers to read-only pointer and array parameters.
- Multi-dimentional array parameters use the `CGLM_CONST` macro instead,
  because for these `const` only works in C++ and C23 (with N2607).
- For `glm_mat4_mulN`, the matrices are not const-qualified although they
  are read-only, but changing the pointer type would require changing
  application code.
- Incorrect incorrect in/out in doc comments was fixed for
  `glm_ray_sphere`, `glm_swapf`, `glm_quat_rotate_at`.
2026-10-25 23:24:28 +01:00

42 lines
841 B
C

/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#ifndef cglmc_frustum_h
#define cglmc_frustum_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../common.h"
CGLM_EXPORT
void
glmc_frustum_planes(CGLM_CONST mat4 m, vec4 dest[6]);
CGLM_EXPORT
void
glmc_frustum_corners(CGLM_CONST mat4 invMat, vec4 dest[8]);
CGLM_EXPORT
void
glmc_frustum_center(CGLM_CONST vec4 corners[8], vec4 dest);
CGLM_EXPORT
void
glmc_frustum_box(CGLM_CONST vec4 corners[8], CGLM_CONST mat4 m, vec3 box[2]);
CGLM_EXPORT
void
glmc_frustum_corners_at(CGLM_CONST vec4 corners[8],
float splitDist,
float farDist,
vec4 planeCorners[4]);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_frustum_h */