mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
562f3c2fe2
The tan and cos versions allow specifying the fov directly from the tan or cos of the half angle, useful for dealing with lights.
12 lines
440 B
C
12 lines
440 B
C
#ifndef __QF_Vulkan_projection_h
|
|
#define __QF_Vulkan_projection_h
|
|
|
|
#include "QF/simd/types.h"
|
|
|
|
void QFV_Orthographic (mat4f_t proj, float xmin, float xmax,
|
|
float ymin, float ymax, float znear, float zfar);
|
|
void QFV_PerspectiveTan (mat4f_t proj, float fov, float aspect);
|
|
void QFV_PerspectiveCos (mat4f_t proj, float fov, float aspect);
|
|
void QFV_Perspective (mat4f_t proj, float fov, float aspect);
|
|
|
|
#endif//__QF_Vulkan_projection_h
|