|
wavelength 1.0.0
|
The projector the front end moves between the menu screens. More...
#include <gizmo.h>

Public Member Functions | |
| Gizmo (int nUnused) | |
| Construct the gizmo from the loaded gizmo.view, gizmo.mesh, gizmo movie.mov, and freqscreen.mat, showing the movie. | |
| virtual | ~Gizmo () |
| Destroy the gizmo. | |
| virtual void | Draw () |
| Draw the gizmo, rendering the avatar first while the gizmo shows it. | |
| virtual void | Poll (float fTime) |
| Advance the gizmo's move and its animations to a time, and place its mesh. | |
| void | SetShowing (bool bShowing) |
| Show or hide the gizmo's view. | |
| bool | IsShowing () const |
| Report whether the gizmo's view shows. | |
| void | SetShowAvatar (bool bShowAvatar) |
| Show the avatar texture or the movie on the gizmo's screen. | |
| bool | IsShowingAvatar () const |
| Report whether the gizmo's screen shows the avatar texture. | |
| Transform | WorldXfm () const |
| Report the world transform of the gizmo's mesh. | |
| void | MoveTo (const Vector3 &position, const Quat &orientation, float fTime) |
| Show the gizmo and start moving it from where it stands to a position and an orientation. | |
| void | SetTo (const Vector3 &position, const Quat &orientation) |
| Place the gizmo at a position and an orientation. | |
Static Public Member Functions | |
| static void | Init (DataArray *pConfig) |
| Read the frames of the move from the freq_screen section. | |
Public Attributes | |
| Vector3 | mPos |
| Quat | mRot |
| Vector3 | mFromPos |
| Quat | mFromRot |
The projector the front end moves between the menu screens.
The RTTI includes the class name and records no base. The object is 0xa0 bytes, allocated with the global operator new. The vptr follows the members at +0x94, and the vtable at 0x003d00d0 runs the type function, the destructor, Draw(), and Poll().
The metagame creates the one instance and stores it in Metagame::mGizmo. Each FreqScreen records where the gizmo stands while the screen shows, and MoveTo() eases the gizmo there along an arctangent over the frames the freq_screen section of the metagame configuration gives. The gizmo's screen shows either its movie or, while it shows the avatar, the avatar texture.
|
explicit |
Construct the gizmo from the loaded gizmo.view, gizmo.mesh, gizmo movie.mov, and freqscreen.mat, showing the movie.
| nUnused | Stored at +0x40. No routine reads it, and the metagame passes 0. |
|
virtual |
Destroy the gizmo.
|
virtual |
Draw the gizmo, rendering the avatar first while the gizmo shows it.
|
virtual |
Advance the gizmo's move and its animations to a time, and place its mesh.
Nothing happens while the gizmo is hidden.
| fTime | The front-end time. |
|
static |
Read the frames of the move from the freq_screen section.
| pConfig | The metagame section of the configuration, which must have freq_screen. |
| void Gizmo::SetShowing | ( | bool | bShowing | ) |
Show or hide the gizmo's view.
| bShowing | Whether the view shows. |
| bool Gizmo::IsShowing | ( | ) | const |
Report whether the gizmo's view shows.
| void Gizmo::SetShowAvatar | ( | bool | bShowAvatar | ) |
Show the avatar texture or the movie on the gizmo's screen.
The avatar texture draws with source alpha blending and the movie additively.
| bShowAvatar | Whether the screen shows the avatar texture. |
| bool Gizmo::IsShowingAvatar | ( | ) | const |
Report whether the gizmo's screen shows the avatar texture.
| Transform Gizmo::WorldXfm | ( | ) | const |
Report the world transform of the gizmo's mesh.
Show the gizmo and start moving it from where it stands to a position and an orientation.
| position | The position. |
| orientation | The orientation. |
| fTime | The front-end time the move starts at. |
Place the gizmo at a position and an orientation.
A move under way continues towards the new place.
| position | The position. |
| orientation | The orientation. |
| Vector3 Gizmo::mPos |
The position the gizmo stands at or moves to.
| Quat Gizmo::mRot |
The orientation the gizmo has or turns to.
| Vector3 Gizmo::mFromPos |
The position the move started from.
| Quat Gizmo::mFromRot |
The orientation the move started from.