Created new Object MixingGoup

This commit is contained in:
Bruno
2021-03-03 22:39:36 +01:00
parent 2ccedd42e4
commit 134617bbd1
9 changed files with 202 additions and 44 deletions

View File

@@ -4,20 +4,19 @@
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Source.h"
#include "defines.h"
#include "FrameBuffer.h"
#include "Decorations.h"
#include "Resource.h"
#include "Session.h"
#include "SearchVisitor.h"
#include "ImageShader.h"
#include "ImageProcessingShader.h"
#include "SystemToolkit.h"
#include "SessionVisitor.h"
#include "Log.h"
#include "Mixer.h"
#include "MixingGroup.h"
#include "Source.h"
Source::Source() : initialized_(false), symbol_(nullptr), active_(true), locked_(false), need_update_(true), workspace_(STAGE)
{
@@ -179,7 +178,6 @@ Source::Source() : initialized_(false), symbol_(nullptr), active_(true), locked_
// empty transition node
groups_[View::TRANSITION] = new Group;
//
// locker switch button : locked / unlocked icons
locker_ = new Switch;
lock_ = new Handles(Handles::LOCKED);
@@ -204,6 +202,7 @@ Source::Source() : initialized_(false), symbol_(nullptr), active_(true), locked_
// for drawing in mixing view
mixingshader_ = new ImageShader;
mixingshader_->stipple = 1.0;
mixinggroup_ = nullptr;
// create media surface:
// - textured with original texture from media player
@@ -228,6 +227,10 @@ Source::~Source()
(*it)->detach();
clones_.clear();
// inform group
if (mixinggroup_)
mixinggroup_->detach(this);
// delete objects
delete stored_status_;
if (renderbuffer_)