stereoview
view src/cam.h @ 1:59fd3f6948fe
fixed makefile for macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 04 Mar 2011 07:15:42 +0200 |
parents | |
children |
line source
1 #ifndef CAM_H_
2 #define CAM_H_
4 enum {
5 CAM_CENTER,
6 CAM_LEFT,
7 CAM_RIGHT
8 };
10 /* reset to the initial state */
11 void cam_reset(void); /* all */
12 void cam_reset_view(void); /* view parameters */
13 void cam_reset_proj(void); /* projection parameters */
14 void cam_reset_stereo(void); /* stereo parameters */
16 /* camera viewing parameters */
17 void cam_pan(int dx, int dy); /* pan across X/Z plane */
18 void cam_height(int dh); /* move verticaly */
19 void cam_rotate(int dx, int dy); /* rotate around local Y and X axis */
20 void cam_zoom(int dz); /* dolly the camera fwd/back */
22 /* camera projection parameters */
23 void cam_clip(float n, float f); /* set clipping planes */
24 void cam_fov(float f); /* vertical field of view in degrees */
25 void cam_aspect(float a); /* aspect ratio (width / height) */
27 /* stereo parameters */
28 void cam_separation(float s);
29 void cam_focus_dist(float d);
31 /* multiply the camera view matrix on top of the current matrix stack
32 * (which should be GL_MODELVIEW)
33 */
34 void cam_view_matrix(void);
35 void cam_stereo_view_matrix(int eye);
37 /* multiply the camera projection matrix on top of the current matrix stack
38 * (which should be GL_PROJECTION)
39 */
40 void cam_proj_matrix(void);
41 void cam_stereo_proj_matrix(int eye);
43 #endif /* CAM_H_ */