Patch Update - Fix Release

FIX :

~ Modifie l'ordre des shutdown
+ Ajout de Mutex pour éviter de release et de render la frame en même temp
- Suppression d'un shutdown oublié de ImGui dans systeme class
This commit is contained in:
2024-04-12 16:19:18 +02:00
parent 117d31d788
commit 42226741ce
7 changed files with 137 additions and 27 deletions

View File

@@ -29,6 +29,7 @@
#include "rendertextureclass.h"
#include "displayplaneclass.h"
#include "reflectionshaderclass.h"
#include "systemclass.h"
/////////////
@@ -75,14 +76,14 @@ public:
XMVECTOR GetLightPosition(int index);
XMVECTOR GetLightColor(int index);
void SetLightPosition(int index, XMVECTOR color);
void SetLightColor(int index, XMVECTOR color);
void DeleteLight(int index);
std::vector<LightClass*> GetLights() const { return m_Lights; };
bool GetShouldQuit() const { return m_ShouldQuit; };
void SetShouldQuit(bool shouldQuit) { m_ShouldQuit = shouldQuit; };
private:
bool Render(float, float, float, float, float);
bool UpdateMouseStrings(int, int, bool);
@@ -158,6 +159,12 @@ private :
// ------------------- LOGGER ---------------------- //
// ------------------------------------------------- //
Logger logger;
// ------------------------------------------------- //
// ------------------- OTHER ----------------------- //
// ------------------------------------------------- //
bool m_ShouldQuit;
};
#endif