calacirya

diff src/camera.h @ 0:df9e0bc7685a

starting calacirya project
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 18 Sep 2011 11:46:55 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/camera.h	Sun Sep 18 11:46:55 2011 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +#ifndef CAMERA_H_
     1.5 +#define CAMERA_H_
     1.6 +
     1.7 +#include <vmath.h>
     1.8 +#include <anim.h>
     1.9 +
    1.10 +struct camera {
    1.11 +	struct anm_node *node;
    1.12 +	float vfov;
    1.13 +	float shutter, aperture;
    1.14 +
    1.15 +	struct camera *next;
    1.16 +};
    1.17 +
    1.18 +ray_t get_prim_ray(struct camera *cam, vec2_t ppos, float tm);
    1.19 +
    1.20 +#endif	/* CAMERA_H_ */