wavelength 1.0.0
Loading...
Searching...
No Matches
tnlstreakgemfx.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/gfxtunnel.h"
4#include "math/interpolator.h"
5#include "math/transform.h"
6#include "rnd/rndmat.h"
7#include "rnd/rndtext.h"
8#include "rnd/rndview.h"
9
18public:
27 TnlStreakGemFX(int nTrack, int nPlayer);
28
36
44 void Hide(bool bNow);
45
54 void Show(float flTick, int nSlot);
55
63 void SetText(const char *pszText);
64
72 void Refresh(GfxTunnel *pTunnel);
73
82 void Poll(float flDelta, GfxTunnel *pTunnel);
83
90 void Draw();
91
98 static float sBlinkRate;
99
106 static char sPendingText[16];
107
114 static unsigned char sShownMask;
115
122
123private:
124 int mTrack;
125 unsigned char mBit;
126 RndView *mView;
127 RndText *mText;
128 RndMat *mMat;
129 RndMat *mFontMat;
130 float mAlpha;
131 float mBlinkRate;
132 float mTick;
133 int mSlot;
134 Transform mXfm;
135 int mMovePending;
136
144 void Place(GfxTunnel *pTunnel);
145};
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58
Straight-line interpolator.
Definition interpolator.h:99
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
void Show(float flTick, int nSlot)
Move the arrow to a gem, fading it out of its old place first.
void Poll(float flDelta, GfxTunnel *pTunnel)
Advance the blink of the arrow.
static char sPendingText[16]
The text that waits for no arrow to be shown, or empty.
Definition tnlstreakgemfx.h:106
static unsigned char sShownMask
The bit of each shown arrow.
Definition tnlstreakgemfx.h:114
void Hide(bool bNow)
Fade the arrow out.
void Refresh(GfxTunnel *pTunnel)
Place the shown arrow again where the tunnel changed under it.
~TnlStreakGemFX()
Destroy the arrow.
TnlStreakGemFX(int nTrack, int nPlayer)
Construct a hidden arrow of a track.
void Draw()
Draw the arrow, faded by its blink and by its distance ahead of the song.
void SetText(const char *pszText)
Set the text of the arrows, or queue it while an arrow is shown.
static float sBlinkRate
The blink per millisecond, the reciprocal of streak_arrow_fade_ms clamped to 0 to 1.
Definition tnlstreakgemfx.h:98
static LinearInterpolator sDistanceFade
The fade of an arrow by its ticks ahead of the song.
Definition tnlstreakgemfx.h:121
Affine transform stored as three basis rows and a translation row.
Definition transform.h:18