3 This file is part of libmspgl
4 Copyright © 2008, 2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
10 #include "version_1_2.h"
21 Blend::Blend(BlendFactor sf, BlendFactor df):
27 Blend::Blend(BlendEquation e, BlendFactor sf, BlendFactor df):
33 static RequireVersion _ver(1, 2);
36 void Blend::bind() const
41 // XXX Don't try to set equation if version < 1.2
43 glBlendFunc(src_factor, dst_factor);
47 const Blend &Blend::alpha()
49 static Blend blend(SRC_ALPHA, ONE_MINUS_SRC_ALPHA);
60 void blend_equation(BlendEquation eq)
62 static RequireVersion _ver(1, 2);
66 void blend_func(BlendFactor src, BlendFactor dst)
68 glBlendFunc(src, dst);