resonance 1.0.1
Loading...
Searching...
No Matches
hudfreq.h
Go to the documentation of this file.
1#pragma once
2
3#include "rnd/mesh.h"
4
5class Player;
6
7namespace Rnd {
8class Mat;
9class MatAnim;
10class TransAnim;
11} // namespace Rnd
12
20class HudFreq {
21public:
36 HudFreq(Player *pPlayer, int nIndex);
37
49 void SetPulsing(int nPulsing);
50
62 void SetShowing(int nShowing) {
63 mMesh->SetShowing(nShowing);
64 }
65
77 void SetFrame(float flFrame);
78
79private:
80 Rnd::TransAnim *mAnim; // `<layout> freq<p>.tnm`
81 Rnd::Mesh *mMesh; // `<layout> freq<n>.mesh`
82 Rnd::MatAnim *mPulseAnim; // `HUD freq pulse.mnm`
83 Rnd::Mat *mMat; // `HUD freq<p>.mat`
84 // Non-zero while the icon pulses.
85 int mPulsing;
86 // The pulse loop the frame is in. Starts at -100.
87 int mPulseLoop;
88};
void SetShowing(int nShowing)
Show or hide the icon.
Definition hudfreq.h:62
void SetPulsing(int nPulsing)
Start or stop the icon's pulse.
HudFreq(Player *pPlayer, int nIndex)
Resolve the icon's objects for one player.
void SetFrame(float flFrame)
Advance the icon animation and the pulse.
One participant in a session, local or remote.
Definition player.h:39
Animation of the colours and the texture stages of one material.
Definition matanim.h:49
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
The rendering engine.
Definition animhelper.h:3