Skip to content

mix the vsgHelloworld example and vsgImgui #1436

@Conan42

Description

@Conan42

Hello Robert,

I'm trying to mix the vsgHelloworld example and vsgImgui, but I'm stuck on the commandGraph:

auto commandGraph = createCommandGraphForView(window, camera, sceneGraph);

// auto renderGraph = vsg::RenderGraph::create(window);
// commandGraph->addChild(renderGraph);

// Create the ImGui node and add it to the renderGraph

// auto params = Params::create();
// auto renderImGui = vsgImGui::RenderImGui::create(window, MyGui::create(params, options));
// renderGraph->addChild(renderImGui);

viewer->assignRecordAndSubmitTaskAndPresentation({commandGraph});

viewer->compile();

There I can clearly see the openstreet map.

auto commandGraph = createCommandGraphForView(window, camera, sceneGraph);
auto renderGraph = vsg::RenderGraph::create(window);
commandGraph->addChild(renderGraph);

// Create the ImGui node and add it to the renderGraph
auto params = Params::create();
auto renderImGui = vsgImGui::RenderImGui::create(window, MyGui::create(params, options));
renderGraph->addChild(renderImGui);

viewer->assignRecordAndSubmitTaskAndPresentation({commandGraph});

viewer->compile();

Now I only see the Imgui window.

Can you help me, please?

Michel Guenin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions