polyadvent

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

camera.h (267B)


      1 
      2 #ifndef POLYADVENT_CAMERA_H
      3 #define POLYADVENT_CAMERA_H
      4 
      5 #include "mat4.h"
      6 #include "vec3.h"
      7 #include "node.h"
      8 
      9 struct camera {
     10   float frustum[16];
     11   node_id node_id;
     12 };
     13 
     14 void
     15 camera_follow(vec3 *cam_pos, vec3 *target, mat4 *cam);
     16 
     17 #endif /* POLYADVENT_CAMERA_H */