118 constexpr float kRingTangentScale = 0.97f;
122 nRing, &xfm, flFrame, flBlend, kRingTangentScale);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
void GetPathXfm(Transform *pOut, float flFrame)
Evaluate the path at a frame.
void ProjectSectionToCameraSpace(int nRing, Transform *pOut, float flAnimFrame, float flRingBlend, float flTangentScale)
Build the frame of a point on one ring at a path frame, with the ring pushed outwards.
Linear colour with four float components.
Definition color.h:10
float w
Definition vector3.h:16
void PlaceOnRing(Rnd::Transformable &trans, int nRing, float flFrame, float flBlend)
Move a transformable onto one ring of the tunnel at one frame, pushed outwards by 0....
Definition tnlutil.h:117
int g_nAppTunnelTutorial
Non-zero when AppTunnel was constructed for a tutorial level, from configuration code 0x3a1.
void PlaceOnPath(Rnd::Transformable &trans, float flFrame)
Move a transformable to the tunnel path transform at one frame.
Definition tnlutil.h:95
float g_flTunnelBrightness
The brightness the lane floor colours are scaled by.
Color TnlColorFromName(const HxStr &name)
Map a player colour name to the colour the tunnel draws that player in.
int TnlColorIndexFromName(HxStr name)
Map a player colour name to its index.
void PadTransformRows(Transform &xfm)
Set the padding word of every row of a transform to 1.
Definition tnlutil.h:76
Color TnlLaneColorFromName(HxStr name)
Map a player colour name to the lane floor colour, scaled by g_flTunnelBrightness.
Color TnlDimColorFromName(HxStr name)
Map a player colour name to a darker form of TnlColorFromName().
Rnd::Tunnel * GetCachedTunnelObject()
Report the tunnel CacheTunnelObjectByName() last recorded.