2 #include "ext_blend_minmax.h"
3 #include "ext_blend_subtract.h"
14 Blend::Blend(BlendFactor sf, BlendFactor df):
20 Blend::Blend(BlendEquation e, BlendFactor sf, BlendFactor df):
25 if(eq==MIN || eq==MAX)
26 static Require _req(EXT_blend_minmax);
27 else if(eq==SUBTRACT || eq==REVERSE_SUBTRACT)
28 static Require _req(EXT_blend_subtract);
31 void Blend::bind() const
38 glBlendFunc(src_factor, dst_factor);
48 const Blend &Blend::alpha()
50 static Blend blend(SRC_ALPHA, ONE_MINUS_SRC_ALPHA);