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

Function RenderAdd_SetClearColor

src/Renderer/RenderAdd.cpp:278–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool RenderAdd_SetClearColor(RenderCmdList *cmdList, const SetClearColorCmd &cmd)
279{
280 auto ret = Render_AppendCmdType(cmdList, cmd._type, &cmd, sizeof(cmd));
281 if (!cmdList->immediateMode)
282 {
283 return ret;
284 }
285
286 RenderDraw_SetClearColor(cmd, &cmdList->state);
287 return true;
288}
289
290bool RenderAdd_ClearRT(RenderCmdList *cmdList, const ClearRTCmd &cmd)
291{

Callers 2

DrawGameWindowLightMethod · 0.85
DrawMethod · 0.85

Calls 2

Render_AppendCmdTypeFunction · 0.85
RenderDraw_SetClearColorFunction · 0.85

Tested by

no test coverage detected