MCPcopy Create free account
hub / github.com/crossuo/crossuo / RenderAdd_DisableDepth

Function RenderAdd_DisableDepth

src/Renderer/RenderAdd.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228bool RenderAdd_DisableDepth(RenderCmdList *cmdList)
229{
230 DisableDepthStateCmd cmd;
231 auto ret = Render_AppendCmdType(cmdList, cmd._type, &cmd, sizeof(cmd));
232 if (!cmdList->immediateMode)
233 {
234 return ret;
235 }
236
237 RenderDraw_DisableDepthState(cmd, &cmdList->state);
238 return true;
239}
240
241bool RenderAdd_EnableDepth(RenderCmdList *cmdList)
242{

Callers 1

DrawGameWindowMethod · 0.85

Calls 2

Render_AppendCmdTypeFunction · 0.85

Tested by

no test coverage detected