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

Method setCurrentFrame

OgreMain/src/OgreTextureUnitState.cpp:439–448  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

437 }
438 //-----------------------------------------------------------------------
439 void TextureUnitState::setCurrentFrame(unsigned int frameNumber)
440 {
441 OgreAssert(frameNumber < mFramePtrs.size(), "out of range");
442 mCurrentFrame = frameNumber;
443 // this will affect the hash
444 if( Pass::getHashFunction() == Pass::getBuiltinHashFunction( Pass::MIN_TEXTURE_CHANGE ) )
445 {
446 mParent->_dirtyHash();
447 }
448 }
449 //-----------------------------------------------------------------------
450 unsigned int TextureUnitState::getCurrentFrame(void) const
451 {

Callers 1

setValueMethod · 0.80

Calls 3

getHashFunctionFunction · 0.85
_dirtyHashMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected