MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetMirrored

Method SetMirrored

Source/Graphics/animationreader.cpp:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void AnimationReader::SetMirrored(bool _mirrored) {
281 mirrored = _mirrored;
282
283 int anim_id = 0;
284 events = anim->GetEvents(anim_id, mirrored);
285 std::sort(events.begin(),
286 events.end(),
287 NormalizedAnimationEventCompare());
288}
289
290bool AnimationReader::Finished() {
291 return normalized_time >= 1.0f;

Callers 1

ApplyAnimationFlagsMethod · 0.80

Calls 5

sortFunction · 0.50
GetEventsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected