template<class T>
attribute_properties class
OpenGL type trait helper.
The attribute_
- scalar types
- GLfloat, float
- GLdouble, double
- GLint, std::
int32_t - GLuint, std::
uint32_t - GLshort, std::
int16_t - GLushort, std::
uint16_t - GLbyte, std::
int8_t - GLubyte, std::
uint8_t
- vector types with value_type matching a scalar type
- glm::tvec2
- glm::tvec3
- glm::tvec4
Glpp attribute_
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 };