mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-06 16:00:00 +01:00
34 lines
715 B
C++
34 lines
715 B
C++
#ifndef LAYERVIEW_H
|
|
#define LAYERVIEW_H
|
|
|
|
#include "View.h"
|
|
|
|
class LayerView : public View
|
|
{
|
|
public:
|
|
LayerView();
|
|
|
|
void draw () override;
|
|
void update (float dt) override;
|
|
void resize (int) override;
|
|
int size () override;
|
|
bool canSelect(Source *) override;
|
|
|
|
std::pair<Node *, glm::vec2> pick(glm::vec2) override;
|
|
Cursor grab (Source *s, glm::vec2 from, glm::vec2 to, std::pair<Node *, glm::vec2> pick) override;
|
|
void arrow (glm::vec2) override;
|
|
|
|
float setDepth (Source *, float d = -1.f);
|
|
|
|
private:
|
|
void updateSelectionOverlay() override;
|
|
|
|
float aspect_ratio;
|
|
Mesh *persp_layer_;
|
|
Mesh *persp_left_, *persp_right_;
|
|
Group *frame_;
|
|
|
|
};
|
|
|
|
#endif // LAYERVIEW_H
|