1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
2022-09-27 21:44:56 +02:00

31 lines
616 B
C++

#include <d3dtypes.h>
#include <d3dumddi.h>
#include <Config/Settings/Antialiasing.h>
namespace Config
{
namespace Settings
{
Antialiasing::Antialiasing()
: MappedSetting("Antialiasing", "off", {
{"off", D3DDDIMULTISAMPLE_NONE},
{"msaa", D3DDDIMULTISAMPLE_NONMASKABLE},
{"msaa2x", D3DDDIMULTISAMPLE_2_SAMPLES},
{"msaa4x", D3DDDIMULTISAMPLE_4_SAMPLES},
{"msaa8x", D3DDDIMULTISAMPLE_8_SAMPLES}
})
{
}
Setting::ParamInfo Antialiasing::getParamInfo() const
{
if (D3DDDIMULTISAMPLE_NONE != m_value)
{
return { "Quality", 0, 7, 7, m_param };
}
return {};
}
}
}