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

Method GetPoint

src/game/map/render_map.cpp:128–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128const CEnvPoint *CMapBasedEnvelopePointAccess::GetPoint(int Index) const
129{
130 if(Index < 0 || Index >= m_NumPoints)
131 return nullptr;
132 if(m_pPoints != nullptr)
133 return &m_pPoints[Index + m_StartPoint];
134 if(m_pPointsBezierUpstream != nullptr)
135 return &m_pPointsBezierUpstream[Index + m_StartPoint];
136 return nullptr;
137}
138
139const CEnvPointBezier *CMapBasedEnvelopePointAccess::GetBezier(int Index) const
140{

Callers 2

RenderEvalEnvelopeMethod · 0.45
CalculateEnvelopeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected