resonance
1.0.1
Loading...
Searching...
No Matches
hudscore.h
Go to the documentation of this file.
1
#pragma once
2
3
class
Player
;
4
5
namespace
Rnd
{
6
class
Mesh
;
7
class
Text
;
8
}
// namespace Rnd
9
21
class
HudScore
{
22
public
:
36
HudScore
(
Player
*pPlayer,
int
nIndex);
37
47
void
Update
(
float
flTime);
48
55
Rnd::Mesh
*
mMesh
;
56
57
private
:
58
Rnd::Text
*mText;
59
60
public
:
67
float
mChangeTime
;
68
74
int
mScore
;
75
};
HudScore::mScore
int mScore
The score the text shows once Update() redraws.
Definition
hudscore.h:74
HudScore::mMesh
Rnd::Mesh * mMesh
The readout's backing mesh.
Definition
hudscore.h:55
HudScore::Update
void Update(float flTime)
Redraw the score once the change has settled.
HudScore::HudScore
HudScore(Player *pPlayer, int nIndex)
Resolve the readout's objects for one player.
HudScore::mChangeTime
float mChangeTime
When the pending change arrived.
Definition
hudscore.h:67
Player
One participant in a session, local or remote.
Definition
player.h:39
Rnd::Mesh
Indexed triangle mesh with one material.
Definition
mesh.h:46
Rnd::Text
Run of text drawn as a quad per glyph.
Definition
text.h:57
Rnd
The rendering engine.
Definition
animhelper.h:3
src
app
hudscore.h
Generated by
1.15.0