|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
Original / Modern presets for the 2026 options tab. More...
Go to the source code of this file.
Classes | |
| struct | cLuxPresetValues |
Enumerations | |
| enum | eLuxPreset { eLuxPreset_Original , eLuxPreset_Modern , eLuxPreset_Custom , eLuxPreset_LastEnum } |
| enum | eLuxHudText { eLuxHudText_Normal , eLuxHudText_Large , eLuxHudText_Larger , eLuxHudText_LastEnum } |
Functions | |
| float | LuxHudTextScale (int alSize) |
| cLuxPresetValues | LuxPresetValues (int alPreset) |
| bool | LuxPresetMatches (const cLuxPresetValues &a, const cLuxPresetValues &p, float afMaxAnisotropy) |
| int | LuxDetectPreset (const cLuxPresetValues &aV, float afMaxAnisotropy=16.0f) |
| afMaxAnisotropy: the highest anisotropy this GPU offers (Modern asks for 16x). | |
Variables | |
| static const int | kLuxDefaultPreset = eLuxPreset_Modern |
| static const float | kLuxModernFogAmount = 0.35f |
| Modern's fog thickness: the cellar keeps 75 % of its brightness, the haze is gone. | |
Original / Modern presets for the 2026 options tab.
Pure data, unit tested in tests/cpp/test_presets.cpp. The preset box only reflects the current values: picking a preset fills them in, changing any one of them afterwards shows Custom.
Definition in file LuxPresets.h.
| enum eLuxPreset |
| Enumerator | |
|---|---|
| eLuxPreset_Original | |
| eLuxPreset_Modern | |
| eLuxPreset_Custom | |
| eLuxPreset_LastEnum | |
Definition at line 14 of file LuxPresets.h.
| enum eLuxHudText |
| Enumerator | |
|---|---|
| eLuxHudText_Normal | |
| eLuxHudText_Large | |
| eLuxHudText_Larger | |
| eLuxHudText_LastEnum | |
Definition at line 23 of file LuxPresets.h.
|
inline |
Definition at line 25 of file LuxPresets.h.
|
inline |
Definition at line 62 of file LuxPresets.h.
|
inline |
Definition at line 92 of file LuxPresets.h.
|
inline |
afMaxAnisotropy: the highest anisotropy this GPU offers (Modern asks for 16x).
Definition at line 109 of file LuxPresets.h.
|
static |
Definition at line 32 of file LuxPresets.h.
|
static |
Modern's fog thickness: the cellar keeps 75 % of its brightness, the haze is gone.
Definition at line 35 of file LuxPresets.h.