]> git.tdb.fi Git - libs/gl.git/blob - source/blend.cpp
Use RAII checks for extensions and versions
[libs/gl.git] / source / blend.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "blend.h"
9 #include "extension.h"
10 #include "version_1_2.h"
11
12 namespace Msp {
13 namespace GL {
14
15 void blend_equation(BlendEquation eq)
16 {
17         static RequireVersion _ver(1, 2);
18         glBlendEquation(eq);
19 }
20
21 void blend_func(BlendFactor src, BlendFactor dst)
22 {
23         glBlendFunc(src, dst);
24 }
25
26 } // namespace GL
27 } // namespace Msp