]> git.tdb.fi Git - libs/gl.git/blobdiff - source/blend.cpp
Add blending and clipping support
[libs/gl.git] / source / blend.cpp
diff --git a/source/blend.cpp b/source/blend.cpp
new file mode 100644 (file)
index 0000000..c9407c2
--- /dev/null
@@ -0,0 +1,25 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2008  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#define GL_GLEXT_PROTOTYPES
+#include "blend.h"
+
+namespace Msp {
+namespace GL {
+
+void blend_equation(BlendEquation eq)
+{
+       glBlendEquation(eq);
+}
+
+void blend_func(BlendFactor src, BlendFactor dst)
+{
+       glBlendFunc(src, dst);
+}
+
+} // namespace GL
+} // namespace Msp