X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmisc.cpp;h=70b300a661783e5398b3ca891a6b646b3ceeae87;hb=c112952f156b4ccb820568bca1fd1c59966f708e;hp=9815383a793ade89f5e7b5d23221af70b77e7a1b;hpb=bdf2568e247af858c4a1ca8004d97f13fe9b8cb0;p=libs%2Fgl.git diff --git a/source/misc.cpp b/source/misc.cpp index 9815383a..70b300a6 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -28,5 +28,17 @@ void set(GLenum state, bool value) disable(state); } +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