-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcamera.h
More file actions
37 lines (27 loc) · 776 Bytes
/
Copy pathcamera.h
File metadata and controls
37 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _CAMERA_H
#define _CAMERA_H
#include "core.h"
class Camera {
public:
Camera(GLFWwindow* windowHandle);
void Reset();
void SetLight();
void RegisterParentWindow(GLFWwindow* windowHandle);
// Access functions
void SetAspect(GLfloat aspect);
private:
// Perspective controls
GLfloat _FOV; // Field of View Angle
GLfloat _aspect; // Aspect Ratio
GLfloat _nearClip; // Near clipping plane distance
GLfloat _farClip; // Far clipping plane distance
int _winX;
int _winY;
GLFWwindow* _windowHandle;
};
/*
The Camera class provides a simple means to controlling the 3D camera. It could
be extended to support more interactive controls. Ultimately. the camera sets the
GL projection and viewing matrices.
*/
#endif