MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / createKeyFrame

Method createKeyFrame

OgreMain/src/OgreAnimationTrack.cpp:165–178  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

163 }
164 //---------------------------------------------------------------------
165 KeyFrame *AnimationTrack::createKeyFrame( Real timePos )
166 {
167 KeyFrame *kf = createKeyFrameImpl( timePos );
168
169 // Insert just before upper bound
170 KeyFrameList::iterator i =
171 std::upper_bound( mKeyFrames.begin(), mKeyFrames.end(), kf, KeyFrameTimeLess() );
172 mKeyFrames.insert( i, kf );
173
174 _keyFrameDataChanged();
175 mParent->_keyFrameListChanged();
176
177 return kf;
178 }
179 //---------------------------------------------------------------------
180 void AnimationTrack::removeKeyFrame( unsigned short index )
181 {

Callers 1

exportAnimMethod · 0.80

Calls 5

KeyFrameTimeLessClass · 0.85
_keyFrameDataChangedFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected