66 void SetRange(
int nFirstSlice,
int nSliceCount,
int nRing) {
69 mFadeRate = kFadeOutRate;
84 mFadeRate = kFadeOutRate;
90 static constexpr float kFadeOutRate = -0.2f;
int mFirstSlice
Definition tnlseekerfade.h:96
void Update()
Advance the alpha by mFadeRate, clamped to 0 through 1.
int mIndex
Definition tnlseekerfade.h:106
void SetActive(int nActive)
Apply the stored range to the seeker, or an empty range.
int mSliceCount
Definition tnlseekerfade.h:97
void ClearRange()
Drop the recorded range and fade the seeker out.
Definition tnlseekerfade.h:81
int mActive
Definition tnlseekerfade.h:95
void SetRange(int nFirstSlice, int nSliceCount, int nRing)
Record a new seeker range and fade the seeker out so that Update() brings it back there.
Definition tnlseekerfade.h:66
int mRing
Definition tnlseekerfade.h:98
TnlSeekerFade(int nIndex, const Color &color)
Give the seeker its material and colour and apply an empty range.
Linear colour with four float components.
Definition color.h:10