-
Notifications
You must be signed in to change notification settings - Fork 0
/
mode.h
36 lines (32 loc) · 925 Bytes
/
mode.h
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
#ifndef MODE_H
#define MODE_H
struct MModes
{
enum Modes
{
Neutral, // safe mode. no actions associated
Select, // can add triangles here with mouse
Translate, // moves objects only
Rotate, // rotates objects only
Scale, // scales objects only
CameraTranslate, // moves eye position
TargetTranslate, // moves center position
RotateCameraZ, // rotates up vector
NearPlane, // adjust near plane
FarPlane // adjust far plane
};
};
struct KModes
{
enum Modes
{
Neutral, // safe mode. no actions associated
Object, // actions only work on the currently selected object
CameraTranslate, // actions only work on the camera
TargetTranslate, // actions only work on the target
CameraZ, // rotate cameraZ
NearPlane,
FarPlane
};
};
#endif // MODE_H