diff options
Diffstat (limited to 'src/mbgl/gl/gl_config.cpp')
-rw-r--r-- | src/mbgl/gl/gl_config.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mbgl/gl/gl_config.cpp b/src/mbgl/gl/gl_config.cpp new file mode 100644 index 0000000000..4160ae100e --- /dev/null +++ b/src/mbgl/gl/gl_config.cpp @@ -0,0 +1,24 @@ +#include "gl_config.hpp" + +namespace mbgl { +namespace gl { + +const StencilFunc::Type StencilFunc::Default = { GL_ALWAYS, 0, ~0u }; +const StencilMask::Type StencilMask::Default = ~0u; +const StencilTest::Type StencilTest::Default = GL_FALSE; +const StencilOp::Type StencilOp::Default = { GL_KEEP, GL_KEEP, GL_REPLACE }; +const DepthRange::Type DepthRange::Default = { 0, 1 }; +const DepthMask::Type DepthMask::Default = GL_TRUE; +const DepthTest::Type DepthTest::Default = GL_FALSE; +const DepthFunc::Type DepthFunc::Default = GL_LEQUAL; +const Blend::Type Blend::Default = GL_TRUE; +const BlendFunc::Type BlendFunc::Default = { GL_ONE, GL_ONE_MINUS_SRC_ALPHA }; +const ColorMask::Type ColorMask::Default = { GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE }; +const ClearDepth::Type ClearDepth::Default = 1; +const ClearColor::Type ClearColor::Default = { 0, 0, 0, 0 }; +const ClearStencil::Type ClearStencil::Default = 0; +const Program::Type Program::Default = 0; +const LineWidth::Type LineWidth::Default = 1; + +} // namespace gl +} // namespace mbgl |