-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcamera.h
More file actions
48 lines (31 loc) · 976 Bytes
/
camera.h
File metadata and controls
48 lines (31 loc) · 976 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
38
39
40
41
42
43
44
45
46
47
48
#ifndef CAMERA_H
#define CAMERA_H
#include "math.h"
#include "phisics.h"
typedef struct camera_t {
Vec QUATERNION;
Matrix VIEW;
Matrix PERSPECTIVE;
Transform TRANSFORM;
FLOAT FOV;
FLOAT Near, Far;
FLOAT resolution;
CHAR name[20];
} *Camera;
extern volatile Camera CCURRENT;
extern FLOAT Width;
extern FLOAT Height;
extern FLOAT AR;
void InitializeCameras();
void TerminateCameras();
Camera MakeCamera();
void FreeCamera(Camera c);
BOOL SwitchCamera(const char* to);
void ConfirmCameraSwitch();
BOOL DeleteCamera(const char* c);
extern void update();
extern void update_quaternion();
extern void update_view();
extern void update_perspective();
void DisplayData(HWND wndw, HDC hdc, UINT msg, WPARAM wParam, LPARAM lParam);
#endif