SimpleGL  1.1.0
A framework for platform independent rendering
Classes | Namespaces | Functions | Variables
backend_gl.hpp File Reference
#include <SimpleGL_gl/SimpleGL_gl_Export.h>
#include <GL/glew.h>
#include "backend_gl.tcc"

Go to the source code of this file.

Classes

struct  sgl::GLVersion
 Structure for saving the OpenGL version. More...
 

Namespaces

 sgl
 Generic namespace for the SimpleGL framework.
 

Functions

SIMPLEGL_GL_EXPORT void sgl::initGL ()
 Initializes the OpenGL backend, this will also check available extensions and should be called after sgl::init(). More...
 
template<typename E >
GLint sgl::to_GLint (E e)
 Gets the GLint value from an enum class. More...
 
template<typename E >
GLenum sgl::to_GLenum (E e)
 Gets the GLenum value from an enum class. More...
 
template<typename E >
GLbitfield sgl::to_GLbitfield (E e)
 Gets the GLbitfield value from an enum class. More...
 

Variables

SIMPLEGL_GL_EXPORT GLVersion sgl::contextVersion
 Stores the OpenGL version structure. More...
 

Detailed Description

Author
Heiko Brumme

This file contains some general functions for the OpenGL Backend.

Definition in file backend_gl.hpp.