Isle
Loading...
Searching...
No Matches
realtimeview.h
Go to the documentation of this file.
1#ifndef REALTIMEVIEW_H
2#define REALTIMEVIEW_H
3
7extern float g_userMaxLodPower;
8
15public:
20
25
30 static float GetPartsThreshold();
31
37 static float GetUserMaxLOD();
38
43 static void SetPartsThreshold(float p_threshold);
44
49 static void UpdateMaxLOD();
50
55 static void SetUserMaxLOD(float p_lod);
56
62 static float GetUserMaxLodPower() { return g_userMaxLodPower; }
63};
64
65#endif // REALTIMEVIEW_H
[AI] Handles global view and level-of-detail (LOD) settings for real-time rendering.
Definition: realtimeview.h:14
static void SetUserMaxLOD(float p_lod)
[AI] Sets the maximum LOD allowed for the user and updates global LOD power.
static float GetPartsThreshold()
[AI] Returns the global threshold for the number of scene parts above which LOD switching is triggere...
RealtimeView()
[AI] Constructor, ensures the maximum LOD "power" is recalculated at initialization.
static float GetUserMaxLOD()
[AI] Returns the user-specified maximum LOD value.
static float GetUserMaxLodPower()
[AI] Returns the cached LOD power, used for faster LOD checks in rendering.
Definition: realtimeview.h:62
~RealtimeView()
[AI] Destructor.
static void UpdateMaxLOD()
[AI] Updates the global LOD power value based on current base and max user LOD.
static void SetPartsThreshold(float p_threshold)
[AI] Sets the global threshold for the number of parts before LOD reduction.
float g_userMaxLodPower
[AI] Global variable storing the calculated LOD "power" value for the user, derived from base and max...
Definition: realtimeview.cpp:6