MCPcopy Create free account
hub / github.com/OGRECave/ogre / getValue

Method getValue

OgreMain/src/OgrePredefinedControllers.cpp:86–90  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

84 }
85 //-----------------------------------------------------------------------
86 float TextureFrameControllerValue::getValue(void) const
87 {
88 int numFrames = mTextureLayer->getNumFrames();
89 return ((float)mTextureLayer->getCurrentFrame() / (float)numFrames);
90 }
91 //-----------------------------------------------------------------------
92 void TextureFrameControllerValue::setValue(float value)
93 {

Callers

nothing calls this directly

Calls 2

getNumFramesMethod · 0.80
getCurrentFrameMethod · 0.80

Tested by

no test coverage detected