SimpleGL  1.1.0
A framework for platform independent rendering
backend_gl.tcc
Go to the documentation of this file.
1 
9 
10 #include <type_traits>
11 
12 using namespace std;
13 
14 namespace sgl {
15 
16  template<typename E>
17  GLint to_GLint(E e) {
18  return static_cast<typename underlying_type<E>::type> (e);
19  }
20 
21  template<typename E>
22  GLenum to_GLenum(E e) {
23  return static_cast<typename underlying_type<E>::type> (e);
24  }
25 
26  template<typename E>
27  GLbitfield to_GLbitfield(E e) {
28  return static_cast<typename underlying_type<E>::type> (e);
29  }
30 }
GLenum to_GLenum(E e)
Gets the GLenum value from an enum class.
Definition: backend_gl.tcc:22
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
GLbitfield to_GLbitfield(E e)
Gets the GLbitfield value from an enum class.
Definition: backend_gl.tcc:27
GLint to_GLint(E e)
Gets the GLint value from an enum class.
Definition: backend_gl.tcc:17