X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FHUD.hpp;h=cbe28762727c81e90c47f973298bce545f3a6393;hb=f1f8941a3f682fb589cf3c620fc7e7602cfc0f7f;hp=7db025865c329c92cddde9916ee889fd85857832;hpb=54f3f1260b95a924fcb40d9d6de3fa2e2c382f6f;p=blank.git diff --git a/src/ui/HUD.hpp b/src/ui/HUD.hpp index 7db0258..cbe2876 100644 --- a/src/ui/HUD.hpp +++ b/src/ui/HUD.hpp @@ -4,16 +4,16 @@ #include "FixedText.hpp" #include "MessageBox.hpp" #include "../graphics/EntityMesh.hpp" +#include "../graphics/glm.hpp" #include "../graphics/PrimitiveMesh.hpp" -#include - namespace blank { class Block; class BlockTypeRegistry; class Config; +class CongestionControl; class Environment; class Font; class Player; @@ -42,6 +42,9 @@ public: void UpdatePosition(); void UpdateOrientation(); + // net stats + void UpdateNetStats(const CongestionControl &); + // message box void PostMessage(const char *); void PostMessage(const std::string &msg) { @@ -79,9 +82,15 @@ private: bool show_block; bool show_entity; + // net stats + FixedText bandwidth_text; + FixedText rtt_text; + FixedText packet_loss_text; + bool show_net; + // message box MessageBox messages; - IntervalTimer msg_timer; + CoarseTimer msg_timer; bool msg_keep; // crosshair