]> git.tdb.fi Git - libs/gl.git/blobdiff - source/blend.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / blend.cpp
diff --git a/source/blend.cpp b/source/blend.cpp
deleted file mode 100644 (file)
index b2f59e1..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2008, 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "blend.h"
-#include "extension.h"
-#include "version_1_2.h"
-
-namespace Msp {
-namespace GL {
-
-Blend::Blend():
-       eq(ADD),
-       src_factor(ONE),
-       dst_factor(ZERO)
-{ }
-
-Blend::Blend(BlendFactor sf, BlendFactor df):
-       eq(ADD),
-       src_factor(sf),
-       dst_factor(df)
-{ }
-
-Blend::Blend(BlendEquation e, BlendFactor sf, BlendFactor df):
-       eq(e),
-       src_factor(sf),
-       dst_factor(df)
-{
-       if(eq!=ADD)
-               static RequireVersion _ver(1, 2);
-}
-
-void Blend::bind() const
-{
-       if(set_current(this))
-       {
-               glEnable(GL_BLEND);
-               if(glBlendEquation)
-                       glBlendEquation(eq);
-               glBlendFunc(src_factor, dst_factor);
-       }
-}
-
-void Blend::unbind()
-{
-       if(set_current(0))
-               glDisable(GL_BLEND);
-}
-
-const Blend &Blend::alpha()
-{
-       static Blend blend(SRC_ALPHA, ONE_MINUS_SRC_ALPHA);
-       return blend;
-}
-
-} // namespace GL
-} // namespace Msp