[core] move GL enum conversions to separate file

This commit is contained in:
Konstantin Käfer
2019-02-27 18:43:48 +01:00
parent da6e1390c6
commit fde7c20f36
9 changed files with 173 additions and 133 deletions

View File

@@ -84,8 +84,8 @@ gfx::ColorMode PaintParameters::colorModeForRenderPass() const {
const float overdraw = 1.0f / 8.0f;
return gfx::ColorMode {
gfx::ColorMode::Add {
gfx::ColorMode::BlendFactor::ConstantColor,
gfx::ColorMode::BlendFactor::One
gfx::ColorBlendFactorType::ConstantColor,
gfx::ColorBlendFactorType::One
},
Color { overdraw, overdraw, overdraw, 0.0f },
gfx::ColorMode::Mask { true, true, true, true }