PUSH - Ajout section ÉQUIPEMENT/ARME pour le HUD. +1 texture (gun01.png).

This commit is contained in:
Mathieu Duval
2023-09-16 00:12:14 -04:00
parent 8faa67596e
commit 54ae0b087a
6 changed files with 98 additions and 42 deletions

View File

@@ -31,8 +31,9 @@ public:
virtual void MouseReleaseEvent(const MOUSE_BUTTON &button, int x, int y);
private:
bool LoadTexture(Texture& texture, const std::string& filename, bool stopOnError = true);
bool LoadTexture(Texture& texture, const std::string& filename, bool useMipmaps = true, bool stopOnError = true);
void DisplayCrosshair();
void DisplayCurrentItem();
void DisplayHud();
void DisplayInfo(float elapsedTime, BlockType bloc);
void DrawHud(float elapsedTime, BlockType bloc);
@@ -53,6 +54,7 @@ private:
Texture m_textureSkybox;
Texture m_textureFont;
Texture m_textureCrosshair;
Texture m_textureGun;
Skybox m_skybox;
Audio m_audio = Audio(AUDIO_PATH "start.wav");