-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhud.h
37 lines (26 loc) · 734 Bytes
/
hud.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "common.h"
#include "font.h"
struct Fader
{
String text; // Const string, not allocated!
Vector4 color;
Vector4 bg_color;
Vector2 dx_dt;
Dynamic_Font *font;
f32 time_started;
// @Cleanup: rename these *_t to *_time variable names;
f32 pre_fade_t; // 0.0
f32 fade_in_t; // 2.0
f32 sustain_t; // 2.5
f32 fade_out_t; // 0.5
f32 y; // 0.0 Of baseline, in unit coordinates.
};
extern Dynamic_Font *fader_font;
extern Dynamic_Font *fps_font;
void clear_faders();
Fader *game_report(String text);
Fader *short_game_report(String text);
Fader *do_report(String text, RArr<Fader*> *faders);
#include "entity_manager.h"
void draw_hud(Entity_Manager *manager);