Visual Computing Library
Loading...
Searching...
No Matches
vcl::comp::HasTexCoord Concept Reference

HasTexCoord concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::TexCoord component of a given element. More...

#include <vclib/concepts/mesh/components/tex_coord.h>

Concept definition

template<typename T>
concept vcl::comp::HasTexCoord = requires (T&& obj) {
typename RemoveRef<T>::TexCoordType;
{ obj.texCoord() } -> TexCoordConcept;
}
A concept representing a Texture Coordinate.
Definition tex_coord.h:37
HasTexCoord concept is satisfied only if a Element class provides the types and member functions spec...
Definition tex_coord.h:47

Detailed Description

HasTexCoord concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::TexCoord component of a given element.

Note that this concept does not discriminate between the Horizontal TexCoord component and the vertical OptionalTexCoord component, therefore it does not guarantee that a template Element type that satisfies this concept provides TexCoord component at runtime (it is guaranteed only that the proper member functions are available at compile time).