3. Implementation – Defining the structures and other rules
Here is the structure of the camera:
1 struct Camera
2 {
3
double NEAR = 1.0;
4
double FAR = 200.0;
5
6
double x, y, z;
7
double rotAngle;
8
double sin, cos;
9 }
// The value of zNear
// The value of zFar
// Position
// Orientation angle
// Sine and cosine of rotAngle
The renderer
16