transform.h (382B)
1 #ifndef TRANSFORM_H 2 #define TRANSFORM_H 3 4 #include "types.h" 5 #include "vec.h" 6 7 typedef struct { 8 f32 yaw; 9 f32 pitch; 10 Vec3 position; 11 Vec3 forward; 12 Vec3 up; 13 Vec3 right; 14 } Transform; 15 16 void Transform_init( 17 Transform *t, 18 f32 x, 19 f32 y, 20 f32 z, 21 f32 yaw, 22 f32 pitch 23 ); 24 25 void Transform_updateVectors(Transform *t); 26 27 #endif