WIP - Light Conversion en Vector des lights pour ImGui

+ Fenetre ImGui pour les lights
+ Fonction pour les lights en vector Get/Set
This commit is contained in:
2024-04-05 17:59:29 +02:00
parent 62fc1c4dce
commit 064c34b6dc
6 changed files with 129 additions and 29 deletions

View File

@@ -78,6 +78,14 @@ public:
void GenerateTerrain();
void DeleteTerrain();
XMVECTOR GetLightPosition(int index);
XMVECTOR GetLightColor(int index);
void SetLightPosition(int index, XMVECTOR color);
void SetLightColor(int index, XMVECTOR color);
std::vector<LightClass*> GetLights() const { return m_Lights; };
private:
bool Render(float, float, float, float);
bool UpdateMouseStrings(int, int, bool);
@@ -123,7 +131,7 @@ private :
// ----------------------------------- //
LightClass* m_Light;
LightClass* m_Lights;
std::vector<LightClass*> m_Lights;
int m_numLights;
// ----------------------------------- //