-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
663 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
601 changes: 601 additions & 0 deletions
601
wowViewerLib/src/engine/objects/scenes/dayNightDataHolder/DayNightLightHolder.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
wowViewerLib/src/engine/objects/scenes/dayNightDataHolder/DayNightLightHolder.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Created by Deamon on 7/5/2024. | ||
// | ||
|
||
#ifndef AWEBWOWVIEWERCPP_DAYNIGHTLIGHTHOLDER_H | ||
#define AWEBWOWVIEWERCPP_DAYNIGHTLIGHTHOLDER_H | ||
|
||
#include <string> | ||
#include <vector> | ||
#include "../../../persistance/header/commonFileStructs.h" | ||
#include "../../../ApiContainer.h" | ||
|
||
class DayNightLightHolder { | ||
public: | ||
DayNightLightHolder(const HApiContainer &api, int mapId); | ||
|
||
private: | ||
struct mapInnerZoneLightRecord { | ||
int ID; | ||
std::string name; | ||
int LightID; | ||
CAaBox aabb; | ||
std::vector<mathfu::vec2> points; | ||
std::vector<mathfu::vec2> lines; | ||
}; | ||
std::vector<mapInnerZoneLightRecord> m_zoneLights; | ||
|
||
HApiContainer m_api; | ||
int m_mapId = -1; | ||
public: | ||
void loadZoneLights(); | ||
void updateLightAndSkyboxData(const HMapRenderPlan &mapRenderPlan, MathHelper::FrustumCullingData &frustumData, | ||
StateForConditions &stateForConditions, const AreaRecord &areaRecord); | ||
|
||
void getLightResultsFromDB(mathfu::vec3 &cameraVec3, const Config *config, | ||
SkyColors &skyColors, | ||
ExteriorColors &exteriorColors, | ||
FogResult &fogResult, | ||
LiquidColors &liquidColors, | ||
StateForConditions *stateForConditions); | ||
}; | ||
|
||
|
||
#endif //AWEBWOWVIEWERCPP_DAYNIGHTLIGHTHOLDER_H |
Oops, something went wrong.