polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

mat_util.h (440B)


      1 
      2 #ifndef POLYADVENT_MAT_UTIL_H
      3 #define POLYADVENT_MAT_UTIL_H
      4 
      5 #include "vec3.h"
      6 #include "mat4.h"
      7 #include "quat.h"
      8 
      9 void look_at(vec3 *eye, vec3 *target, vec3 *up, mat4 *dest);
     10 mat4 *mat4_create_transform(float *pos, float *scale, quat *orientation, mat4 *dest);
     11 vec3 *vec3_forward(vec3 *p, quat *orientation, vec3 *dir, float *dest);
     12 vec3 *vec3_forward_amt(quat *orientation, float *dir, float *dest);
     13 
     14 #endif /* POLYADVENT_MAT_UTIL_H */