From 30744dadeb9692e21417c1d6d775312d3f0489f0 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 30 Aug 2020 08:45:11 +0300 Subject: [PATCH] Support std::array mesh attributes --- libs/gfx/include/psemek/gfx/mesh.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/gfx/include/psemek/gfx/mesh.hpp b/libs/gfx/include/psemek/gfx/mesh.hpp index 5f5d0497..d77b0f60 100644 --- a/libs/gfx/include/psemek/gfx/mesh.hpp +++ b/libs/gfx/include/psemek/gfx/mesh.hpp @@ -105,6 +105,16 @@ namespace psemek::gfx static constexpr GLboolean normalized = gl::FALSE_; }; + template + struct attrib_traits> + { + using attrib_type = std::array; + + static constexpr GLint size = N; + static constexpr GLenum type = attrib_traits::type; + static constexpr GLboolean normalized = gl::FALSE_; + }; + template struct attrib_traits> {