Automatic depth increment when placing a source.

This commit is contained in:
brunoherbelin
2020-05-19 18:38:16 +02:00
parent 1ea1937fd7
commit 6ac25c01c8
5 changed files with 32 additions and 2 deletions

2
View.h
View File

@@ -89,7 +89,7 @@ public:
void zoom (float factor) override;
void grab (glm::vec2 from, glm::vec2 to, Source *s, std::pair<Node *, glm::vec2> pick) override;
void setDepth (Source *, float d);
void setDepth (Source *, float d = -1.f);
private:
float aspect_ratio;