shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shLinearAlgebra.h File Reference
#include <cglm/cglm.h>
#include <math.h>

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define SH_DEGREES_TO_RADIANS(angle)   (angle) * 3.14159265358f / 180.0f
 
#define SH_RADIANS_TO_DEGREES(rad)   (rad) / 3.14159265358f * 180.0f
 

Typedefs

typedef struct ShWindow ShWindow
 

Functions

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])
 

Macro Definition Documentation

◆ _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

Typedef Documentation

◆ ShWindow

typedef struct ShWindow ShWindow

Function Documentation

◆ 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