MCPcopy Create free account
hub / github.com/defold/defold / InsertCommand

Function InsertCommand

engine/render/src/render/render_script.cpp:661–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659 }
660
661 bool InsertCommand(RenderScriptInstance* i, const Command& command)
662 {
663 if (i->m_CommandBuffer.Full())
664 return false;
665 else
666 i->m_CommandBuffer.Push(command);
667 return true;
668 }
669
670 /*# enables a render state
671 *

Callers 15

RenderScript_EnableStateFunction · 0.85
RenderScript_SetViewportFunction · 0.85
RenderScript_ClearFunction · 0.85
RenderScript_DrawFunction · 0.85
RenderScript_DrawDebug3dFunction · 0.85
RenderScript_SetViewFunction · 0.85

Calls 2

FullMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected