MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / AnimationState

Class AnimationState

utilities/olcUTIL_Animate2D.h:180–188  ·  view source on GitHub ↗

A Animate2D::State is a lightweight token that can be attached to things that are animated. Under normal circumstances, it is never updated manually

Source from the content-addressed store, hash-verified

178 // A Animate2D::State is a lightweight token that can be attached to things
179 // that are animated. Under normal circumstances, it is never updated manually
180 struct AnimationState
181 {
182 private:
183 size_t nIndex = 0;
184 float fTime = 0.0f;
185 bool bComplete = false;
186 template<typename StatesEnum>
187 friend class Animation;
188 };
189
190 // Animation object holds a group of frame sequences and can mutate an AnimationState token
191 template<typename StatesEnum>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected