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

Method AnimationLength

engine/Poseidon/Graphics/Textures/TextureBank.cpp:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294int Texture::AnimationLength() const
295{
296 if (!_inAnimation)
297 {
298 return 1; // no animation
299 }
300 return _inAnimation->Size();
301}
302
303Texture* Texture::GetAnimation(int i) const
304{

Callers 5

SetPhaseMethod · 0.80
AnimateTextureMethod · 0.80
DrawMeshMethod · 0.80
PrepareTextureFunction · 0.80
AnimateTextureMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected