My Project
rayCamera.h
1 #ifndef CAMERA_INCLUDED
2 #define CAMERA_INCLUDED
3 #include <stdio.h>
4 #include <Util/geometry.h>
6 class RayCamera {
7 public:
9  double heightAngle;
11  double aspectRatio;
20 
22  int read(FILE* fp);
25  void write(FILE* fp=stdout);
26 
28  void drawOpenGL(void);
29 
32  void rotateUp(Point3D center,float angle);
35  void rotateRight(Point3D center,float angle);
36 
38  void moveForward(float dist);
40  void moveRight(float dist);
42  void moveUp(float dist);
43 };
44 #endif // CAMERA_INCLUDED
45 
46 
double heightAngle
Definition: rayCamera.h:9
void drawOpenGL(void)
Definition: rayCamera.todo.cpp:11
Point3D up
Definition: rayCamera.h:17
void moveForward(float dist)
Definition: rayCamera.todo.cpp:17
void write(FILE *fp=stdout)
Definition: rayCamera.cpp:14
Point3D position
Definition: rayCamera.h:13
Definition: geometry.h:81
double aspectRatio
Definition: rayCamera.h:11
void moveUp(float dist)
Definition: rayCamera.todo.cpp:21
int read(FILE *fp)
Definition: rayCamera.cpp:3
void moveRight(float dist)
Definition: rayCamera.todo.cpp:19
Point3D right
Definition: rayCamera.h:19
Point3D direction
Definition: rayCamera.h:15
void rotateRight(Point3D center, float angle)
Definition: rayCamera.todo.cpp:15
void rotateUp(Point3D center, float angle)
Definition: rayCamera.todo.cpp:13
Definition: rayCamera.h:6