resonance 1.0.1
Loading...
Searching...
No Matches
hudeffects.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "msg/barstatusmsg.h"
6
7namespace Rnd {
8class Font;
9class Mat;
10class Mesh;
11class Text;
12} // namespace Rnd
13
25public:
36
46 HudEffects(int nIndex);
47
59
69 void Select(int nKind);
70
81 void SetLit(int nKind, int nLit);
82
83private:
84 Rnd::Mesh *mWires; // `<layout> fxwires<n>.mesh`
85 Rnd::Mat *mLitMat; // `HUD fx_on.mat`
86 Rnd::Mat *mUnlitMat; // `HUD fx_off.mat`
87 Rnd::Font *mSelectedFont; // `HUD fx_on.font`
88 Rnd::Font *mPlainFont; // `HUD fx_off.font`
89 std::vector<Lamp> mLamps;
90};
std::bitset< kEffectCount > Effects
One bit per effect kind.
Definition barstatusmsg.h:45
void Select(int nKind)
Show one kind's name in the selected font and every other name in the plain font.
HudEffects(int nIndex)
Resolve the shared materials and fonts and build one lamp per listed kind, all unlit.
void SetMask(BarStatusMsg::Effects effects)
Light every lamp whose kind's bit is set in a mask, and darken the rest.
void SetLit(int nKind, int nLit)
Light or darken the lamps of one kind.
Glyph atlas, either a host font description or a grid of cells inside a material texture.
Definition font.h:59
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Run of text drawn as a quad per glyph.
Definition text.h:57
The rendering engine.
Definition animhelper.h:3
One lamp, a plain twelve-byte record.
Definition hudeffects.h:31
Rnd::Mesh * mMesh
Definition hudeffects.h:32
Rnd::Text * mText
Definition hudeffects.h:33
int mKind
Definition hudeffects.h:34