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

Go to the source code of this file.

Classes

class  sgl::GL
 This static class wraps general OpenGL functions. More...
 

Namespaces

 sgl
 Generic namespace for the SimpleGL framework.
 

Enumerations

enum  sgl::Capability : GLenum { sgl::Capability::BLEND = GL_BLEND, sgl::Capability::CULL_FACE = GL_CULL_FACE, sgl::Capability::DEPTH_TEST = GL_DEPTH_TEST }
 This enum wraps OpenGL capabilities. More...
 
enum  sgl::ClearBit : GLbitfield { sgl::ClearBit::COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT, sgl::ClearBit::DEPTH_BUFFER_BIT = GL_DEPTH_BUFFER_BIT, sgl::ClearBit::STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT }
 This enum wraps the clear buffer bits. More...
 
enum  sgl::Primitive : GLenum {
  sgl::Primitive::POINTS = GL_POINTS, sgl::Primitive::LINES = GL_LINES, sgl::Primitive::LINE_STRIP = GL_LINE_STRIP, sgl::Primitive::LINE_LOOP = GL_LINE_LOOP,
  sgl::Primitive::TRIANGLES = GL_TRIANGLES, sgl::Primitive::TRIANGLE_STRIP = GL_TRIANGLE_STRIP, sgl::Primitive::TRIANGLE_FAN = GL_TRIANGLE_FAN
}
 This enum wraps Primitive types of OpenGL. More...
 
enum  sgl::BlendFactor : GLenum {
  sgl::BlendFactor::ZERO = GL_ZERO, sgl::BlendFactor::ONE = GL_ONE, sgl::BlendFactor::SRC_COLOR = GL_SRC_COLOR, sgl::BlendFactor::ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
  sgl::BlendFactor::DST_COLOR = GL_DST_COLOR, sgl::BlendFactor::ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR, sgl::BlendFactor::SRC_ALPHA = GL_SRC_ALPHA, sgl::BlendFactor::ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
  sgl::BlendFactor::DST_ALPHA = GL_DST_ALPHA, sgl::BlendFactor::ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA, sgl::BlendFactor::CONSTANT_COLOR = GL_CONSTANT_COLOR, sgl::BlendFactor::ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR,
  sgl::BlendFactor::CONSTANT_ALPHA = GL_CONSTANT_ALPHA, sgl::BlendFactor::ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA, sgl::BlendFactor::SRC_ALPHA_SATURATE = GL_SRC_ALPHA_SATURATE, sgl::BlendFactor::SRC1_COLOR = GL_SRC1_COLOR,
  sgl::BlendFactor::ONE_MINUS_SRC1_COLOR = GL_ONE_MINUS_SRC1_COLOR, sgl::BlendFactor::SRC1_ALPHA = GL_SRC1_ALPHA, sgl::BlendFactor::ONE_MINUS_SRC1_ALPHA = GL_ONE_MINUS_SRC1_ALPHA
}
 This enum wraps the blend factos. More...
 
enum  sgl::CullFaceMode : GLenum { sgl::CullFaceMode::FRONT = GL_FRONT, sgl::CullFaceMode::BACK = GL_BACK, sgl::CullFaceMode::FRONT_AND_BACK = GL_FRONT_AND_BACK }
 This enum wraps the face culling modes. More...
 
enum  sgl::DepthFunction : GLenum {
  sgl::DepthFunction::NEVER = GL_NEVER, sgl::DepthFunction::LESS = GL_LESS, sgl::DepthFunction::EQUAL = GL_EQUAL, sgl::DepthFunction::LEQUAL = GL_LEQUAL,
  sgl::DepthFunction::GREATER = GL_GREATER, sgl::DepthFunction::NOTEQUAL = GL_NOTEQUAL, sgl::DepthFunction::GEQUAL = GL_GEQUAL, sgl::DepthFunction::ALWAYS = GL_ALWAYS
}
 This enum wraps the depth functions. More...
 

Functions

ClearBit sgl::operator| (ClearBit left, ClearBit right)
 Overloaded OR operator for the clear buffer bit. More...
 

Detailed Description

Author
Heiko Brumme

This file contains general methods for OpenGL.

Definition in file gl_general.hpp.