]> git.tdb.fi Git - libs/gl.git/blob - source/misc.cpp
67b2a14266ea8c231d24f724bb4e94cf49e7df8c
[libs/gl.git] / source / misc.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "misc.h"
9
10 namespace Msp {
11 namespace GL {
12
13 void set(GLenum state, bool value)
14 {
15         if(value)
16                 glEnable(state);
17         else
18                 glDisable(state);
19 }
20
21 } // namespace GL
22 } // namespace Msp