mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-25 05:35:25 +02:00
Basic camera control API (#15796)
This commit is contained in:
13
src/player.h
13
src/player.h
@@ -126,6 +126,17 @@ struct PlayerPhysicsOverride
|
||||
}
|
||||
};
|
||||
|
||||
/// @note numeric values are part of network protocol
|
||||
enum CameraMode {
|
||||
// not a mode. indicates that any may be used.
|
||||
CAMERA_MODE_ANY = 0,
|
||||
CAMERA_MODE_FIRST,
|
||||
CAMERA_MODE_THIRD,
|
||||
CAMERA_MODE_THIRD_FRONT
|
||||
};
|
||||
|
||||
extern const struct EnumString es_CameraMode[];
|
||||
|
||||
class Map;
|
||||
struct HudElement;
|
||||
class Environment;
|
||||
@@ -160,6 +171,8 @@ public:
|
||||
return size;
|
||||
}
|
||||
|
||||
CameraMode allowed_camera_mode = CAMERA_MODE_ANY;
|
||||
|
||||
v3f eye_offset_first;
|
||||
v3f eye_offset_third;
|
||||
v3f eye_offset_third_front;
|
||||
|
||||
Reference in New Issue
Block a user