moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
function/states.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #ifndef MOGL_STATES_INCLUDED
00012 #define MOGL_STATES_INCLUDED
00013 
00014 namespace mogl
00015 {
00016     void enable(GLenum flag);
00017     void disable(GLenum flag);
00018     bool isEnabled(GLenum flag);
00019     void setActiveTexture(GLenum unit);
00020     void setViewport(GLint x, GLint y, GLsizei width, GLsizei height);
00021     void setCullFace(GLenum mode);
00022     template <class T> void setPixelStore(GLenum property, T value);
00023 
00024     template <class T> void get(GLenum property, T* value); // Direct call to glGet*v()
00025     template <class T> T    get(GLenum property);
00026     template <class T> void get(GLenum property, GLuint index, T* value); // Direct call to glGet*i_v()
00027     template <class T> T    get(GLenum property, GLuint index);
00028 }
00029 
00030 #include "states.inl"
00031 
00032 #endif // MOGL_STATES_INCLUDED
 All Classes Namespaces Files Functions Variables Defines