X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.cpp;h=39810be3d82b814ef6555032ab0cc422e40e7b62;hb=refs%2Fheads%2Fmaster;hp=c09d17f550aeeaa2807818fd443340b94c7e3595;hpb=98c810b6d2256aa65986bbde12c38917678121bb;p=libs%2Fgl.git diff --git a/source/misc.cpp b/source/misc.cpp deleted file mode 100644 index c09d17f5..00000000 --- a/source/misc.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* $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) - enable(state); - else - disable(state); -} - -void get(GLenum state, int &data) -{ - glGetIntegerv(state, &data); -} - -void get(GLenum state, int *data) -{ - glGetIntegerv(state, data); -} - -int get_i(GLenum state) -{ - int data; - get(state, &data); - return data; -} - -} // namespace GL -} // namespace Msp