template<class T>
glpp::core::object::attribute_properties class

OpenGL type trait helper.

The attribute_properties type trait can be used to determine OpenGL related attributes of native types. Glpp ships the with overloads for the following types:

Glpp attribute_properties can be extended for use with custom types, by providing an partial or full template specialisation of attribute_properties implementing the following interface:

template <T>
struct attribute_properties {
    typedef value_type; // equal to T for scalar types and base type for vector types
    static constexpr GLenum type; // The GLenum value corresponding to value_type
    static constexpr size_t elements_per_vertex; // equal to 1 for scalar types or the number of vector elements
};