MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / AddPhase

Method AddPhase

engine/Poseidon/Graphics/Rendering/Shape/Shape.cpp:1900–1911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1898}
1899
1900void Shape::AddPhase(const AnimationPhase& phase)
1901{
1902 int i = 0;
1903 for (; i < _phase.Size(); i++)
1904 {
1905 if (_phase[i].Time() > phase.Time())
1906 {
1907 break;
1908 }
1909 }
1910 _phase.Insert(i, phase);
1911}
1912
1913int Shape::PrevAnimationPhase(float time) const
1914{

Callers 1

convertToLODShapeFunction · 0.80

Calls 3

SizeMethod · 0.45
TimeMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected