Working on multiple sources selection: created bounding box decoration,

fixed Switch node in Scene, removed Animation node from scene, created
display mode for Source.
This commit is contained in:
brunoherbelin
2020-06-13 18:22:32 +02:00
parent 69b249e7e0
commit aa211fe39b
33 changed files with 457 additions and 256 deletions

View File

@@ -57,7 +57,7 @@ class Icon : public Node
{
public:
typedef enum { GENERIC = 0, IMAGE, VIDEO, SESSION, CLONE, RENDER, EMPTY } Type;
Icon(Type type);
Icon(Type type = GENERIC, glm::vec3 pos = glm::vec3(0.f));
~Icon();
void draw (glm::mat4 modelview, glm::mat4 projection) override;
@@ -71,6 +71,22 @@ protected:
Type type_;
};
class Selection : public Group
{
public:
Selection();
void draw (glm::mat4 modelview, glm::mat4 projection) override;
glm::vec4 color;
protected:
LineSquare *square_;
GlmToolkit::AxisAlignedBoundingBox bbox_;
};
// TODO Shadow mesh with unique vao