MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Terrain/Terrain.cpp:529–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527#endif
528
529void Terrain::Draw(RenderContextBatch& renderContextBatch)
530{
531 PROFILE_CPU();
532 if (DrawSetup(renderContextBatch.GetMainContext()))
533 return;
534 HashSet<TerrainChunk*, RendererAllocation> drawnChunks;
535 for (RenderContext& renderContext : renderContextBatch.Contexts)
536 {
537 const DrawPass drawModes = DrawModes & renderContext.View.Pass;
538 if (drawModes == DrawPass::None)
539 continue;
540 DrawImpl(renderContext, drawnChunks);
541 }
542}
543
544void Terrain::Draw(RenderContext& renderContext)
545{

Callers 3

DrawPatchMethod · 0.45
DrawChunkMethod · 0.45
DrawImplMethod · 0.45

Calls 1

GetMainContextMethod · 0.45

Tested by

no test coverage detected