X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fgl_traits.hpp;h=89d2dea041f902c06b06c8be088ebaefecaa79b7;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=2a599b358574d128dabb7f478ed1c4f363f9c4e3;hpb=5998b18978bd8e7a0c9deb516474634e1d3521c9;p=blank.git diff --git a/src/graphics/gl_traits.hpp b/src/graphics/gl_traits.hpp index 2a599b3..89d2dea 100644 --- a/src/graphics/gl_traits.hpp +++ b/src/graphics/gl_traits.hpp @@ -1,8 +1,9 @@ #ifndef BLANK_GRAPHICS_GL_TRAITS_HPP_ #define BLANK_GRAPHICS_GL_TRAITS_HPP_ +#include "glm.hpp" + #include -#include namespace blank { @@ -72,47 +73,47 @@ template<> struct gl_traits { template<> template -struct gl_traits> { +struct gl_traits> { static constexpr GLint size = 1; static constexpr GLenum type = gl_traits::type; }; template -constexpr GLint gl_traits>::size; +constexpr GLint gl_traits>::size; template -constexpr GLenum gl_traits>::type; +constexpr GLenum gl_traits>::type; template<> template -struct gl_traits> { +struct gl_traits> { static constexpr GLint size = 2; static constexpr GLenum type = gl_traits::type; }; template -constexpr GLint gl_traits>::size; +constexpr GLint gl_traits>::size; template -constexpr GLenum gl_traits>::type; +constexpr GLenum gl_traits>::type; template<> template -struct gl_traits> { +struct gl_traits> { static constexpr GLint size = 3; static constexpr GLenum type = gl_traits::type; }; template -constexpr GLint gl_traits>::size; +constexpr GLint gl_traits>::size; template -constexpr GLenum gl_traits>::type; +constexpr GLenum gl_traits>::type; template<> template -struct gl_traits> { +struct gl_traits> { static constexpr GLint size = 4; static constexpr GLenum type = gl_traits::type; }; template -constexpr GLint gl_traits>::size; +constexpr GLint gl_traits>::size; template -constexpr GLenum gl_traits>::type; +constexpr GLenum gl_traits>::type; }