119 void StartStrip(
int nLane,
const Color &color,
int nId,
float flFrame,
float flBlend);
173 static void SubdivideSegment(
int nLane,
191 static bool NeedsSubdivision(
int nLane,
210 static std::list<DurGemCurve>::iterator FindFirstCurve(std::list<DurGemCurve> &curves,
214 static int WrapIndex(
int nIndex,
int nCount) {
215 const int nRemainder = nIndex % nCount;
216 return nRemainder > -1 ? nRemainder : nRemainder + nCount;
222 std::vector<DurGemRowString *> mRows;
223 std::vector<DurGemStrip *> mStrips;
224 std::list<DurGemCurve> mCurves;
Game-side driver of the tunnel the in-game renderer draws.
Definition apptunnel.h:88
Straight segments of one lane of one tunnel slice, drawn as line pairs of one ribbon.
Definition durgemrowstring.h:23
Live trail of one held durable gem, a two-point ribbon that grows with the playhead.
Definition durgemstrip.h:21
@ kSegmentPointCount
Definition durgemtrails.h:34
void StopStrip(int nId, float flFrame)
Stop the live trail nId at flFrame.
~DurGemTrails()
Delete the row strings and the strips.
void CreateLane(float flWidth, int nLane, Rnd::Mat *pMat)
Create the row strings of lane nLane for every slice row.
static HxStr NewStringName()
Increment g_nDurGemStringCount and format the next ribbon name.
DurGemTrails(AppTunnel *pTunnel, int nMaxPoints)
Allocate the row table and six strips, and resolve the view "tnl strings".
void Update(float flFrame)
Show the ribbons of the slice rows from 480 frames behind flFrame onward and advance the strips.
void EndTrail(int nLane, int nRow)
Clear the row string of lane nLane in slice row nRow and erase the curves of that lane and row.
void StartStrip(int nLane, const Color &color, int nId, float flFrame, float flBlend)
Hand a new live trail to the first free strip.
void AddSegment(int nLane, const Color &color, float flStartFrame, float flStartBlend, float flEndFrame, float flEndBlend)
Add a segment of lane nLane between two tunnel positions.
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Root of a loadable scene.
Definition view.h:47
int g_nDurGemStringCount
Number of ribbon names DurGemTrails::NewStringName() and its inlined copies have issued.
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:12