Initial integration of Mixer, Views and Source classes.

First tests with user interface and Mixing View
This commit is contained in:
brunoherbelin
2020-04-19 00:49:55 +02:00
parent c7a69c1ac8
commit 4f5a71970d
29 changed files with 1211 additions and 630 deletions

View File

@@ -57,6 +57,8 @@ void Node::accept(Visitor& v)
Primitive::~Primitive()
{
deleteGLBuffers_();
if (shader_)
delete shader_;
}
void Primitive::init()
@@ -153,6 +155,14 @@ void Primitive::accept(Visitor& v)
v.visit(*this);
}
void Primitive::replaceShader( Shader *newshader )
{
if (newshader) {
if (shader_)
delete shader_;
shader_ = newshader;
}
}
void Primitive::deleteGLBuffers_()
{