|
wavelength 1.0.0
|
Look of a family of beams, read from the configuration entry of its name. More...
#include <beamparams.h>
Public Types | |
| enum | End { kEndStart = 0 , kEndFinish = 1 } |
| The ends of a beam, the indices of mColors. More... | |
Public Member Functions | |
| BeamParams (const char *pszName) | |
| Construct the look of the beams of a configuration entry. | |
| ~BeamParams () | |
| Destroy the look. | |
| void | Load (DataArray *pConfig, DataArray *pDefaults, bool bReload, float fScale) |
| Read the look from the beams entry of the configuration. | |
| void | Apply (RndLine *pLine, RndMat *pMat) const |
| Give the look to the line and the material of a beam, once the look is loaded. | |
| const Color * | GetColor (int nEnd, const Color *pDefault) const |
| Report the colour of an end of a beam. | |
| int | GetPoints () const |
| const Vector2 & | GetMinFrequency () const |
| const Vector2 & | GetMaxFrequency () const |
| const Vector2 & | GetMinTravelPeriod () const |
| const Vector2 & | GetMaxTravelPeriod () const |
| float | GetAmplitude (int nEnd) const |
| Report the amplitude of the waves at one end. | |
Look of a family of beams, read from the configuration entry of its name.
The class emits no RTTI, and the name is inferred. The object is 0x80 bytes.
| enum BeamParams::End |
|
explicit |
Construct the look of the beams of a configuration entry.
| pszName | The entry. |
| BeamParams::~BeamParams | ( | ) |
Destroy the look.
Read the look from the beams entry of the configuration.
| pConfig | The section of the kind of game. |
| pDefaults | The gfx section. |
| bReload | Whether the configuration was read before. The routine does not read it. |
| fScale | The scale of the tunnel, which scales the width and the amplitudes. |
Give the look to the line and the material of a beam, once the look is loaded.
| pLine | The line of the beam. |
| pMat | The material of the beam, which copies mMat. |
Report the colour of an end of a beam.
| nEnd | The end, one of End. |
| pDefault | The colour a colour of no alpha gives way to. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Report the amplitude of the waves at one end.
| nEnd | The end, one of End. |