Isle
Loading...
Searching...
No Matches
RealtimeView Class Reference

[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...
 

Detailed Description

[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.

Constructor & Destructor Documentation

◆ RealtimeView()

RealtimeView::RealtimeView ( )

[AI] Constructor, ensures the maximum LOD "power" is recalculated at initialization.

Definition at line 18 of file realtimeview.cpp.

◆ ~RealtimeView()

RealtimeView::~RealtimeView ( )

[AI] Destructor.

Does nothing (present for completeness).

Definition at line 24 of file realtimeview.cpp.

Member Function Documentation

◆ GetPartsThreshold()

float RealtimeView::GetPartsThreshold ( )
static

[AI] Returns the global threshold for the number of scene parts above which LOD switching is triggered.

Returns
[AI] The value of parts threshold currently set for LOD adjustment.

Definition at line 48 of file realtimeview.cpp.

◆ GetUserMaxLOD()

float RealtimeView::GetUserMaxLOD ( )
static

[AI] Returns the user-specified maximum LOD value.

[AI] This controls the maximum LOD allowed in rendered models for a user's settings.

Returns
[AI] The user max LOD value.

Definition at line 42 of file realtimeview.cpp.

◆ GetUserMaxLodPower()

static float RealtimeView::GetUserMaxLodPower ( )
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.

Returns
[AI] The current user max LOD power value (g_userMaxLodPower).

Definition at line 62 of file realtimeview.h.

◆ SetPartsThreshold()

void RealtimeView::SetPartsThreshold ( float  p_threshold)
static

[AI] Sets the global threshold for the number of parts before LOD reduction.

Parameters
p_threshold[AI] Number of scene parts above which reduced LODs are enforced.

Definition at line 36 of file realtimeview.cpp.

◆ SetUserMaxLOD()

void RealtimeView::SetUserMaxLOD ( float  p_lod)
static

[AI] Sets the maximum LOD allowed for the user and updates global LOD power.

Parameters
p_lod[AI] New maximum LOD setting from the user.

Definition at line 29 of file realtimeview.cpp.

◆ UpdateMaxLOD()

void RealtimeView::UpdateMaxLOD ( )
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.


The documentation for this class was generated from the following files: