mirror of
https://github.com/recp/cglm.git
synced 2026-08-17 01:30:44 -05:00
a97af506ce
- use relative includes for cglm/call/ headers - explicitly include stdio in cglm/call/io.h - update call documentation
42 lines
776 B
C
42 lines
776 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(mat4 m, vec4 dest[6]);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_frustum_corners(mat4 invMat, vec4 dest[8]);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_frustum_center(vec4 corners[8], vec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_frustum_box(vec4 corners[8], mat4 m, vec3 box[2]);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_frustum_corners_at(vec4 corners[8],
|
|
float splitDist,
|
|
float farDist,
|
|
vec4 planeCorners[4]);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* cglmc_frustum_h */
|