[core] move ColorMode to gfx namespace

This commit is contained in:
Konstantin Käfer
2019-02-28 16:19:33 +01:00
parent fd37d90650
commit da6e1390c6
17 changed files with 135 additions and 115 deletions

View File

@@ -728,14 +728,14 @@ void Context::setStencilMode(const StencilMode& stencil) {
}
}
void Context::setColorMode(const ColorMode& color) {
if (color.blendFunction.is<ColorMode::Replace>()) {
void Context::setColorMode(const gfx::ColorMode& color) {
if (color.blendFunction.is<gfx::ColorMode::Replace>()) {
blend = false;
} else {
blend = true;
blendColor = color.blendColor;
apply_visitor([&] (const auto& blendFunction) {
blendEquation = ColorMode::BlendEquation(blendFunction.equation);
blendEquation = gfx::ColorMode::BlendEquation(blendFunction.equation);
blendFunc = { blendFunction.srcFactor, blendFunction.dstFactor };
}, color.blendFunction);
}