AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxPresets.h File Reference

Original / Modern presets for the 2026 options tab. More...

#include <cmath>
#include "LuxComfort.h"
#include "LuxGuidance.h"
#include "LuxAutoSave.h"

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.

Detailed Description

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.

Enumeration Type Documentation

◆ eLuxPreset

enum eLuxPreset
Enumerator
eLuxPreset_Original 
eLuxPreset_Modern 
eLuxPreset_Custom 
eLuxPreset_LastEnum 

Definition at line 14 of file LuxPresets.h.

◆ eLuxHudText

Enumerator
eLuxHudText_Normal 
eLuxHudText_Large 
eLuxHudText_Larger 
eLuxHudText_LastEnum 

Definition at line 23 of file LuxPresets.h.

Function Documentation

◆ LuxHudTextScale()

float LuxHudTextScale ( int alSize)
inline

Definition at line 25 of file LuxPresets.h.

◆ LuxPresetValues()

cLuxPresetValues LuxPresetValues ( int alPreset)
inline

Definition at line 62 of file LuxPresets.h.

◆ LuxPresetMatches()

bool LuxPresetMatches ( const cLuxPresetValues & a,
const cLuxPresetValues & p,
float afMaxAnisotropy )
inline

Definition at line 92 of file LuxPresets.h.

◆ LuxDetectPreset()

int LuxDetectPreset ( const cLuxPresetValues & aV,
float afMaxAnisotropy = 16.0f )
inline

afMaxAnisotropy: the highest anisotropy this GPU offers (Modern asks for 16x).

Definition at line 109 of file LuxPresets.h.

Variable Documentation

◆ kLuxDefaultPreset

const int kLuxDefaultPreset = eLuxPreset_Modern
static

Definition at line 32 of file LuxPresets.h.

◆ kLuxModernFogAmount

const float kLuxModernFogAmount = 0.35f
static

Modern's fog thickness: the cellar keeps 75 % of its brightness, the haze is gone.

Definition at line 35 of file LuxPresets.h.