X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmisc.cpp;h=9815383a793ade89f5e7b5d23221af70b77e7a1b;hp=b99310a98f5720441de5ba3a8bf787802f282f5b;hb=bdf2568e247af858c4a1ca8004d97f13fe9b8cb0;hpb=7adcad3b40a03000a82e32db4523761c218309b8 diff --git a/source/misc.cpp b/source/misc.cpp index b99310a9..9815383a 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -1,14 +1,31 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "misc.h" namespace Msp { namespace GL { +void enable(GLenum state) +{ + glEnable(state); +} + +void disable(GLenum state) +{ + glDisable(state); +} + void set(GLenum state, bool value) { if(value) - glEnable(state); + enable(state); else - glDisable(state); + disable(state); } } // namespace GL