MCPcopy Create free account
hub / github.com/ddnet/ddnet / CreateQuadContainer

Method CreateQuadContainer

src/engine/client/graphics_threaded.cpp:1476–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1474}
1475
1476int CGraphics_Threaded::CreateQuadContainer(bool AutomaticUpload)
1477{
1478 int Index = -1;
1479 if(m_FirstFreeQuadContainer == -1)
1480 {
1481 Index = m_vQuadContainers.size();
1482 m_vQuadContainers.emplace_back(AutomaticUpload);
1483 }
1484 else
1485 {
1486 Index = m_FirstFreeQuadContainer;
1487 m_FirstFreeQuadContainer = m_vQuadContainers[Index].m_FreeIndex;
1488 m_vQuadContainers[Index].m_FreeIndex = Index;
1489 }
1490
1491 return Index;
1492}
1493
1494void CGraphics_Threaded::QuadContainerChangeAutomaticUpload(int ContainerIndex, bool AutomaticUpload)
1495{

Callers 10

InitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
OnInitMethod · 0.80
AppendTextContainerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected