Isle
Loading...
Searching...
No Matches
realtimeview.cpp
Go to the documentation of this file.
1#include "realtimeview.h"
2
3#include <math.h>
4
5// GLOBAL: LEGO1 0x10109598
7
8// GLOBAL: LEGO1 0x10101044
9float g_userMaxBase = 4.0f;
10
11// GLOBAL: LEGO1 0x10101048
12float g_userMaxLod = 3.6f;
13
14// GLOBAL: LEGO1 0x1010104c
15float g_partsThreshold = 1000.0f;
16
17// FUNCTION: LEGO1 0x100a5dc0
19{
21}
22
23// FUNCTION: LEGO1 0x100a5dd0
25{
26}
27
28// FUNCTION: LEGO1 0x100a5de0
30{
31 g_userMaxLod = p_lod;
33}
34
35// FUNCTION: LEGO1 0x100a5df0
36void RealtimeView::SetPartsThreshold(float p_threshold)
37{
38 g_partsThreshold = p_threshold;
39}
40
41// FUNCTION: LEGO1 0x100a5e00
43{
44 return g_userMaxLod;
45}
46
47// FUNCTION: LEGO1 0x100a5e10
49{
50 return g_partsThreshold;
51}
52
53// FUNCTION: LEGO1 0x100a5e20
55{
57}
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.
~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_userMaxBase
Definition: realtimeview.cpp:9
float g_userMaxLod
float g_userMaxLodPower
[AI] Global variable storing the calculated LOD "power" value for the user, derived from base and max...
Definition: realtimeview.cpp:6
float g_partsThreshold
float g_userMaxLodPower
[AI] Global variable storing the calculated LOD "power" value for the user, derived from base and max...
Definition: realtimeview.cpp:6