MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ construct_glm_type()

template<typename T >
template<typename GlmType >
static GlmType MayaFlux::Kakshya::StructuredView< T >::construct_glm_type ( const component_type components)
inlinestaticprivate

Definition at line 250 of file DataAccess.hpp.

251 {
252 if constexpr (GlmVec2Type<GlmType>) {
253 return GlmType { components[0], components[1] };
254 } else if constexpr (GlmVec3Type<GlmType>) {
255 return GlmType { components[0], components[1], components[2] };
256 } else if constexpr (GlmVec4Type<GlmType>) {
257 return GlmType { components[0], components[1], components[2], components[3] };
258 } else if constexpr (GlmMatrixType<GlmType>) {
259 return glm::make_mat4(components);
260 }
261 }
static constexpr size_t components

References MayaFlux::Kakshya::StructuredView< T >::components.