21 #ifndef otb_GlTypeTraits_h 22 #define otb_GlTypeTraits_h 24 #include "OTBIceExport.h" 34 namespace otb {
namespace gl {
43 template<
typename T >
51 static constexpr GLenum
value() noexcept;
53 static
char const *
name() noexcept;
58 #define OTB_GL_TYPE_TRAITS( type, glenum, glname ) \ 64 static constexpr GLenum
value() noexcept {
return glenum; } \
66 static constexpr
char const *
name() noexcept {
return glname; } \
81 #endif // otb_TypeTraits_h
static char const * name() noexcept
static constexpr char const * name() noexcept
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
static constexpr GLenum value() noexcept
struct otb::gl::TypeTraits< type > OTB_GL_TYPE_TRAITS(GLfloat, GL_FLOAT, "GLfloat")
static constexpr GLenum value() noexcept