2021-04-25 06:47:50 +00:00
|
|
|
#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);
|
2022-03-30 05:55:32 +00:00
|
|
|
// fov_x and fov_y are tan(fov/2) for x and y respectively
|
|
|
|
void QFV_PerspectiveTan (mat4f_t proj, float fov_x, float fov_y);
|
|
|
|
void QFV_PerspectiveCos (mat4f_t proj, float fov);
|
2021-04-25 06:47:50 +00:00
|
|
|
|
2023-07-30 02:13:48 +00:00
|
|
|
extern const mat4f_t qfv_z_up;
|
|
|
|
extern const mat4f_t qfv_box_rotations[6];
|
|
|
|
|
2021-04-25 06:47:50 +00:00
|
|
|
#endif//__QF_Vulkan_projection_h
|