MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / MenuImagePipelines

Method MenuImagePipelines

samples/luxcoreui/uimenu.cpp:345–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343//------------------------------------------------------------------------------
344
345void LuxCoreApp::MenuImagePipelines() {
346 const unsigned int imagePipelineCount = session->GetFilm().GetChannelCount(Film::CHANNEL_IMAGEPIPELINE);
347
348 for (unsigned int i = 0; i < imagePipelineCount; ++i) {
349 if (ImGui::MenuItem(string("Pipeline #" + ToString(i)).c_str(), NULL, (i == imagePipelineIndex)))
350 imagePipelineIndex = i;
351 }
352
353 if (imagePipelineIndex > imagePipelineCount)
354 imagePipelineIndex = 0;
355}
356
357//------------------------------------------------------------------------------
358// MenuScreen

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
ToStringFunction · 0.50
GetChannelCountMethod · 0.45

Tested by

no test coverage detected