|
wavelength 1.0.0
|
Animation of the vortex the play field flies through on the way into and out of a song. More...
#include <vortex.h>
Public Types | |
| enum | Mode { kModeIdle = 0 , kModeOutro = 1 , kModeIn = 2 , kModeHold = 3 , kModeOut = 4 } |
| The values of mMode. More... | |
Public Member Functions | |
| Vortex (const char *pszName) | |
| Construct an idle vortex from its configuration. | |
| ~Vortex () | |
| Release the configuration. | |
| float | GetOutroLength () const |
| Report the length of the run at the end of a song. | |
| float | GetInLength () const |
| Report the length of the run into the play field. | |
| float | GetOutLength () const |
| Report the length of the run out of the play field. | |
| void | Start (float fLength, int eMode) |
| Start a run. | |
| void | Poll () |
| Advance the run to the time of the system clock. | |
| void | Draw () |
| Draw the vortex while a run is in progress. | |
| void | Load () |
| Queue the load of the file of the configuration and find its views. | |
| void | Unload () |
| Stop the run, forget the views, and delete the loader with its objects. | |
| int | GetMode () const |
| float | GetFrame () const |
| const LinearInterpolator & | GetInterp () const |
Animation of the vortex the play field flies through on the way into and out of a song.
The class is not polymorphic and emits no RTTI. The object is 0x78 bytes, and its configuration is the entry of gfx vortices with the name given to the constructor. The name is inferred.
| enum Vortex::Mode |
|
explicit |
Construct an idle vortex from its configuration.
| pszName | The name of the entry of gfx vortices. |
| Vortex::~Vortex | ( | ) |
Release the configuration.
| float Vortex::GetOutroLength | ( | ) | const |
Report the length of the run at the end of a song.
| float Vortex::GetInLength | ( | ) | const |
Report the length of the run into the play field.
| float Vortex::GetOutLength | ( | ) | const |
Report the length of the run out of the play field.
| void Vortex::Start | ( | float | fLength, |
| int | eMode ) |
Start a run.
| fLength | The length of the run in milliseconds, or a negative value for the length the configuration gives. |
| eMode | The run, one of Mode. |
| void Vortex::Poll | ( | ) |
Advance the run to the time of the system clock.
| void Vortex::Draw | ( | ) |
Draw the vortex while a run is in progress.
| void Vortex::Load | ( | ) |
Queue the load of the file of the configuration and find its views.
| void Vortex::Unload | ( | ) |
Stop the run, forget the views, and delete the loader with its objects.
|
inline |
|
inline |
|
inline |