X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.cpp;fp=source%2Fmisc.cpp;h=0000000000000000000000000000000000000000;hb=7aaec9a70b8d7733429bec043f8e33e02956f266;hp=39810be3d82b814ef6555032ab0cc422e40e7b62;hpb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;p=libs%2Fgl.git diff --git a/source/misc.cpp b/source/misc.cpp deleted file mode 100644 index 39810be3..00000000 --- a/source/misc.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#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); -} - -int get_i(GLenum state) -{ - int data; - glGetIntegerv(state, &data); - return data; -} - -int get_shader_i(unsigned id, GLenum state) -{ - int data; - glGetShaderiv(id, state, &data); - return data; -} - -int get_program_i(unsigned id, GLenum state) -{ - int data; - glGetProgramiv(id, state, &data); - return data; -} - -} // namespace GL -} // namespace Msp