Push FIX pour DrawHUD. Toggle (HUD - h) (Crosshair - c) (Infos - i) avec keypress

This commit is contained in:
Mathieu Duval
2023-09-15 20:28:20 -04:00
parent f8ad857666
commit 8faa67596e
3 changed files with 105 additions and 116 deletions

View File

@@ -29,12 +29,13 @@ public:
virtual void MouseMoveEvent(int x, int y);
virtual void MousePressEvent(const MOUSE_BUTTON &button, int x, int y);
virtual void MouseReleaseEvent(const MOUSE_BUTTON &button, int x, int y);
const char* GetGLErrorString(GLenum error);
private:
bool LoadTexture(Texture& texture, const std::string& filename, bool stopOnError = true);
void DrawHud();
void DrawData(float elapsedTime, BlockType bloc);
void DisplayCrosshair();
void DisplayHud();
void DisplayInfo(float elapsedTime, BlockType bloc);
void DrawHud(float elapsedTime, BlockType bloc);
void PrintText(unsigned int x, unsigned int y, float scale, const std::string& t);
int GetFps(float elapsedTime) const;
@@ -76,8 +77,9 @@ private:
bool m_block = false;
bool m_flash = true;
bool m_displayData = false;
bool m_displayCrosshair = true;
bool m_displayHud = true;
bool m_displayInfo = false;
};