X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fblend.h;h=da7c8c7f266b1d08a26b95fc525a73fb1940336a;hb=8e58fc4da8443cb67fe4cd70d6f68de2be73011d;hp=e04aef49c2474cc7be4c49382044518331a6c9a2;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/core/blend.h b/source/core/blend.h index e04aef49..da7c8c7f 100644 --- a/source/core/blend.h +++ b/source/core/blend.h @@ -46,7 +46,7 @@ enum ColorWriteMask }; /** -Blends incoming fragments with those already in the framebuffer. +Blends incoming fragment color values with those already in the framebuffer. */ struct Blend { @@ -61,14 +61,14 @@ struct Blend void factors(BlendFactor, BlendFactor); }; - bool enabled; - BlendEquation equation; - BlendFactor src_factor; - BlendFactor dst_factor; - Color constant; - ColorWriteMask write_mask; + bool enabled = false; + BlendEquation equation = ADD; + BlendFactor src_factor = ONE; + BlendFactor dst_factor = ZERO; + Color constant = { 0.0f, 0.0f, 0.0f, 0.0f }; + ColorWriteMask write_mask = WRITE_ALL; - Blend(); + Blend() = default; Blend(BlendFactor, BlendFactor); Blend(BlendEquation, BlendFactor, BlendFactor); };