1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/Config/Settings/ColorKeyMethod.cpp
2023-11-11 17:16:38 +01:00

26 lines
431 B
C++

#include <Config/Settings/ColorKeyMethod.h>
namespace Config
{
namespace Settings
{
ColorKeyMethod::ColorKeyMethod()
: MappedSetting("ColorKeyMethod", "native", {
{"none", NONE},
{"native", NATIVE},
{"alphatest", ALPHATEST}
})
{
}
Setting::ParamInfo ColorKeyMethod::getParamInfo() const
{
if (ALPHATEST == m_value)
{
return { "AlphaRef", 1, 255, 1, m_param };
}
return {};
}
}
}