Isle
|
[AI] Handles global view and level-of-detail (LOD) settings for real-time rendering. More...
#include <realtimeview.h>
Public Member Functions | |
RealtimeView () | |
[AI] Constructor, ensures the maximum LOD "power" is recalculated at initialization. More... | |
~RealtimeView () | |
[AI] Destructor. More... | |
Static Public Member Functions | |
static float | GetPartsThreshold () |
[AI] Returns the global threshold for the number of scene parts above which LOD switching is triggered. More... | |
static float | GetUserMaxLOD () |
[AI] Returns the user-specified maximum LOD value. More... | |
static void | SetPartsThreshold (float p_threshold) |
[AI] Sets the global threshold for the number of parts before LOD reduction. More... | |
static void | UpdateMaxLOD () |
[AI] Updates the global LOD power value based on current base and max user LOD. More... | |
static void | SetUserMaxLOD (float p_lod) |
[AI] Sets the maximum LOD allowed for the user and updates global LOD power. More... | |
static float | GetUserMaxLodPower () |
[AI] Returns the cached LOD power, used for faster LOD checks in rendering. More... | |
[AI] Handles global view and level-of-detail (LOD) settings for real-time rendering.
[AI] This class encapsulates and manages various thresholds and powers related to LOD selection and performance tuning in the LEGO Island rendering engine. All members are static, meaning all state is global. Provides update and getter/setter functions for LOD parameters and part count thresholds for real-time scenes.
Definition at line 14 of file realtimeview.h.
RealtimeView::RealtimeView | ( | ) |
[AI] Constructor, ensures the maximum LOD "power" is recalculated at initialization.
Definition at line 18 of file realtimeview.cpp.
RealtimeView::~RealtimeView | ( | ) |
[AI] Destructor.
Does nothing (present for completeness).
Definition at line 24 of file realtimeview.cpp.
|
static |
[AI] Returns the global threshold for the number of scene parts above which LOD switching is triggered.
Definition at line 48 of file realtimeview.cpp.
|
static |
[AI] Returns the user-specified maximum LOD value.
[AI] This controls the maximum LOD allowed in rendered models for a user's settings.
Definition at line 42 of file realtimeview.cpp.
|
inlinestatic |
[AI] Returns the cached LOD power, used for faster LOD checks in rendering.
[AI] This is recalculated via UpdateMaxLOD() whenever SetUserMaxLOD or related settings are called.
Definition at line 62 of file realtimeview.h.
|
static |
[AI] Sets the global threshold for the number of parts before LOD reduction.
p_threshold | [AI] Number of scene parts above which reduced LODs are enforced. |
Definition at line 36 of file realtimeview.cpp.
|
static |
[AI] Sets the maximum LOD allowed for the user and updates global LOD power.
p_lod | [AI] New maximum LOD setting from the user. |
Definition at line 29 of file realtimeview.cpp.
|
static |
[AI] Updates the global LOD power value based on current base and max user LOD.
[AI] This recalculates g_userMaxLodPower as pow(base, -maxLOD), which is used for LOD computation. Intended to be called internally any time LOD settings change.
Definition at line 54 of file realtimeview.cpp.