wavelength 1.0.0
Loading...
Searching...
No Matches
gfxtunnelpanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/gfxtunnel.h"
4#include "math/color.h"
5#include "rnd/rndmat.h"
6
15public:
27 int nTrack,
28 const GfxTunnel::BarData *pBar,
29 const Color *pColor);
30
39 void SetDeferred(int bDeferred, float flRevealTick);
40
49
56 void Apply();
57
64 void Refresh();
65
75 bool Update(GfxTunnel *pTunnel, float flTick);
76
77private:
78 GfxTunnel *mTunnel;
79 int mTrack;
80 int mBar;
81 float mTick;
82 int mOwner;
83 int mFlags;
84 int mInSong;
85 int mDeferred;
86 RndMat *mCheckpointMat;
87 const Color *mColor;
88 int mTransparent;
89 int mPickable;
90 float mRevealTick;
91 int mRevealTicks;
92 int mReserved38; // +0x38 Cleared by the constructor and Update(), never read.
93};
void Refresh()
Finish a running reveal at once.
void ResolveState()
Choose the transparency, the pickability, and the checkpoint material from the flags,...
void SetDeferred(int bDeferred, float flRevealTick)
Choose whether the panel waits for its track, and the tick its reveal starts at.
void Apply()
Give the panel its state, and in a remix the checkpoint material of the bar of track 0.
bool Update(GfxTunnel *pTunnel, float flTick)
Advance the panel.
GfxTunnelPanel(GfxTunnel *pTunnel, int nTrack, const GfxTunnel::BarData *pBar, const Color *pColor)
Copy the look of a bar and resolve the state of its panel.
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Linear colour with four float components.
Definition color.h:12
The look of one bar of a track, 0x14 bytes.
Definition gfxtunnel.h:92