1#ifndef SH_LINEAR_ALGEBRA_H 
    2#define SH_LINEAR_ALGEBRA_H 
   10#define _CRT_SECURE_NO_WARNINGS 
   11#pragma warning (disable: 26812 4996) 
   18#define SH_DEGREES_TO_RADIANS(angle) (angle) * 3.14159265358f / 180.0f 
   19#define SH_RADIANS_TO_DEGREES(rad)   (rad) / 3.14159265358f * 180.0f 
   25static void shEulerToVector(
float* rotation, 
float* front) {
 
   26    front[0] = (float)(sin(rotation[1]) * cos(rotation[0]));
 
   27    front[1] = (float)(sin(rotation[0]));
 
   28    front[2] = -(float)(cos(rotation[1]) * cos(rotation[0]));
 
   37    float    projection[4][4]
 
uint8_t shSetView(float *p_position, float *p_front, float *p_up, float view[4][4])
Definition shLinearAlgebra.c:35
 
uint8_t shSetProjection(ShWindow window, float fov, float nc, float fc, float projection[4][4])
Definition shLinearAlgebra.c:14
 
Structure representing a window in the shengine framework.
Definition shWindow.h:54
 
GLFWwindow * window
Definition shWindow.h:55