#include <cglm/cglm.h>
#include <math.h>
Go to the source code of this file.
|
uint8_t | shSetProjection (ShWindow window, float fov, float nc, float fc, float projection[4][4]) |
|
uint8_t | shSetView (float *p_position, float *p_front, float *p_up, float view[4][4]) |
|
◆ _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS |
◆ SH_DEGREES_TO_RADIANS
#define SH_DEGREES_TO_RADIANS |
( |
|
angle | ) |
(angle) * 3.14159265358f / 180.0f |
◆ SH_RADIANS_TO_DEGREES
#define SH_RADIANS_TO_DEGREES |
( |
|
rad | ) |
(rad) / 3.14159265358f * 180.0f |
◆ ShWindow
◆ shSetProjection()
uint8_t shSetProjection |
( |
ShWindow |
window, |
|
|
float |
fov, |
|
|
float |
nc, |
|
|
float |
fc, |
|
|
float |
projection[4][4] |
|
) |
| |
|
extern |
◆ shSetView()
uint8_t shSetView |
( |
float * |
p_position, |
|
|
float * |
p_front, |
|
|
float * |
p_up, |
|
|
float |
view[4][4] |
|
) |
| |
|
extern |