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

@@ -77,7 +77,7 @@ void ImGuiVisitor::visit(Primitive &n)
ImGui::PushID(n.id());
ImGui::Text("Primitive");
n.getShader()->accept(*this);
n.shader()->accept(*this);
ImGui::PopID();
}
@@ -89,7 +89,7 @@ void ImGuiVisitor::visit(ImageSurface &n)
void ImGuiVisitor::visit(MediaSurface &n)
{
ImGui::Text("%s", n.getResource().c_str());
ImGui::Text("%s", n.getUri().c_str());
if (n.getMediaPlayer())
n.getMediaPlayer()->accept(*this);
@@ -152,7 +152,7 @@ void ImGuiVisitor::visit(Scene &n)
ImGui::SetNextItemOpen(true, ImGuiCond_Once);
if (ImGui::CollapsingHeader("Scene Property Tree"))
{
n.getRoot()->accept(*this);
n.root()->accept(*this);
}
}