wavelength 1.0.0
Loading...
Searching...
No Matches
tnlslowdownfx.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/gfxtunnel.h"
4#include "math/interpolator.h"
5#include "rnd/rndanimatable.h"
6#include "rnd/rndmesh.h"
7#include "rnd/rndtransanim.h"
8#include "script/dataarray.h"
9
19public:
29 TnlSlowdownFX(const char *pszName, GfxTunnel *pTunnel);
30
38
49 void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption);
50
57 void Reset();
58
68 void Start(float flStartTick, float flEndTick, float flStopTick);
69
76 void Update();
77
84 void Draw();
85
86private:
87 GfxTunnel *mTunnel;
88 RndAnimatable *mAnim;
89 LinearInterpolator mFrames;
90 RndTransAnim *mTransAnim;
91 RndMesh *mMesh;
92 const char *mName;
93};
Reference-counted array of script data nodes.
Definition dataarray.h:20
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
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Triangle mesh with a material.
Definition rndmesh.h:31
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
Load the settings of the overlay.
TnlSlowdownFX(const char *pszName, GfxTunnel *pTunnel)
Find the objects of the overlay, scale its animation and place its mesh to cover the screen,...
~TnlSlowdownFX()
Destroy the overlay.
void Draw()
Draw the mesh of the overlay.
void Start(float flStartTick, float flEndTick, float flStopTick)
Show the overlay and run its animation from the song tick to the end of a slowdown.
void Reset()
Hide the overlay and stop its animation.
void Update()
Move the animations of the overlay to the song tick, unless the slowdown has ended.