wavelength 1.0.0
Loading...
Searching...
No Matches
tnlgemcapfx.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/gfxtunnel.h"
4#include "gfx/tnlgeom.h"
5#include "math/interpolator.h"
6#include "math/transform.h"
7#include "math/vector3.h"
8#include "rnd/rndview.h"
9
17public:
25
33
50 void Start(GfxTunnel *pTunnel,
51 char nTrack,
52 RndView *pView,
53 float flTick,
54 float flLateral,
55 const Vector3 *pScale,
56 bool bErase);
57
64 void Stop();
65
74 bool Draw(TnlGeom *pGeom);
75
83 bool IsIdle() const;
84
91 static float sAnimFrames;
92
99 static float sLengths[2];
100
107 static float sTravels[2];
108
109private:
110 char mTrack;
111 RndView *mView;
112 Transform mSpin;
113 Transform mXfm;
114 float mLateral;
115 LinearInterpolator mFrameCurve;
116 LinearInterpolator mTickCurve;
117};
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
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
TnlGemCapFX()
Construct an idle burst.
static float sLengths[2]
The length of a capture burst, then of an erase burst, in milliseconds.
Definition tnlgemcapfx.h:99
static float sTravels[2]
The ticks a capture burst moves forward, then those of an erase burst.
Definition tnlgemcapfx.h:107
bool Draw(TnlGeom *pGeom)
Place, animate, and draw the burst.
void Stop()
Stop the burst at once.
bool IsIdle() const
Report whether the burst is idle.
void Start(GfxTunnel *pTunnel, char nTrack, RndView *pView, float flTick, float flLateral, const Vector3 *pScale, bool bErase)
Start the burst at a gem.
~TnlGemCapFX()
Destroy the burst.
static float sAnimFrames
The frames of the animation of the view over a burst.
Definition tnlgemcapfx.h:91
The geometry of the tracks of the tunnel, which places a cell of a track in the world.
Definition tnlgeom.h:32
Affine transform stored as three basis rows and a translation row.
Definition transform.h:18
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14