mirror of
https://github.com/isledecomp/isle.git
synced 2024-12-21 05:23:20 -05:00
7e9d3bde65
* Name substitution for reccmp asm output * Decomp marker corrections * Fix a few annotations * Fix IslePathActor dtor * Fix audio presenter * Fix LegoEntity::Create * Fix Pizza and related * Fix path part * Add missing annotations * Add missing annotations * Add more missing annotations * Fix MxNotificationParam * More fixes * More fixes * Add missing annotations * Fixes * More annotations * More annotations * More annotations * More annotations * Fixes and annotations * Find imports and thunk functions * Fix more bugs * Add some markers for LEGO1 imports, fix SIZE comment * Add more annotations * Rename annotation * Fix bugs and annotations * Fix bug * Order * Update legoanimpresenter.h * Re-enable print-rec-addr option --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
46 lines
839 B
C++
46 lines
839 B
C++
#include "realtimeview.h"
|
|
|
|
#include <math.h>
|
|
|
|
// GLOBAL: LEGO1 0x10109598
|
|
float g_userMaxLodPower;
|
|
|
|
// GLOBAL: LEGO1 0x10101044
|
|
float g_userMaxBase = 4.0f;
|
|
|
|
// GLOBAL: LEGO1 0x10101048
|
|
float g_userMaxLod = 3.6f;
|
|
|
|
// GLOBAL: LEGO1 0x1010104c
|
|
float g_partsThreshold = 1000.0f;
|
|
|
|
// FUNCTION: LEGO1 0x100a5de0
|
|
void RealtimeView::SetUserMaxLOD(float p_lod)
|
|
{
|
|
g_userMaxLod = p_lod;
|
|
UpdateMaxLOD();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a5df0
|
|
void RealtimeView::SetPartsThreshold(float p_threshold)
|
|
{
|
|
g_partsThreshold = p_threshold;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a5e00
|
|
float RealtimeView::GetUserMaxLOD()
|
|
{
|
|
return g_userMaxLod;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a5e10
|
|
float RealtimeView::GetPartsThreshold()
|
|
{
|
|
return g_partsThreshold;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a5e20
|
|
void RealtimeView::UpdateMaxLOD()
|
|
{
|
|
g_userMaxLodPower = pow(g_userMaxBase, -g_userMaxLod);
|
|
}
|