+#include <msp/gl/extensions/ext_blend_minmax.h>
+#include <msp/gl/extensions/ext_blend_subtract.h>
#include "blend.h"
-#include "ext_blend_minmax.h"
-#include "ext_blend_subtract.h"
namespace Msp {
namespace GL {
if(set_current(this))
{
glEnable(GL_BLEND);
- if(glBlendEquation)
+ if(EXT_blend_minmax)
glBlendEquation(eq);
glBlendFunc(src_factor, dst_factor);
}
return blend;
}
+const Blend &Blend::additive()
+{
+ static Blend blend(ONE, ONE);
+ return blend;
+}
+
+const Blend &Blend::additive_alpha()
+{
+ static Blend blend(SRC_ALPHA, ONE);
+ return blend;
+}
+
} // namespace GL
} // namespace Msp