Added support for distance between camera position and camera target

This commit is contained in:
Enrico Turri 2019-06-13 09:12:44 +02:00
parent 26d48b7f52
commit f0b228c4d2
2 changed files with 15 additions and 5 deletions

View file

@ -9,6 +9,8 @@ namespace GUI {
struct Camera
{
static const float DefaultDistance;
enum EType : unsigned char
{
Unknown,
@ -20,7 +22,8 @@ struct Camera
EType type;
float zoom;
float phi;
// float distance;
// Distance between camera position and camera target measured along the camera Z axis
float distance;
bool requires_zoom_to_bed;
bool inverted_phi;