MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / RetrieveCommandFromPool

Method RetrieveCommandFromPool

Sources/nCine/Graphics/ImGuiDrawing.cpp:364–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 }
363
364 RenderCommand* ImGuiDrawing::RetrieveCommandFromPool()
365 {
366 bool commandAdded = false;
367 RenderCommand* retrievedCommand = RenderResources::GetRenderCommandPool().RetrieveOrAdd(imguiShaderProgram_.get(), commandAdded);
368 if (commandAdded) {
369 SetupRenderCommand(*retrievedCommand);
370 }
371 return retrievedCommand;
372 }
373
374 void ImGuiDrawing::SetupRenderCommand(RenderCommand& cmd)
375 {

Callers

nothing calls this directly

Calls 2

RetrieveOrAddMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected