TGX 1.0.0
A tiny 2D/3D graphics library optimized for 32 bits microcontrollers.
Loading...
Searching...
No Matches
tgx::id_color_type< T > Struct Template Reference

Integer that identifies the color type (0 if not a color) More...

#include <Color.h>

Static Public Attributes

static const int value
 

Detailed Description

template<typename T>
struct tgx::id_color_type< T >

Integer that identifies the color type (0 if not a color)

Member Data Documentation

◆ value

template<typename T >
const int tgx::id_color_type< T >::value
static
Initial value:
=
(std::is_same<T, RGB565>::value) ? 1 : (
(std::is_same<T, RGB24>::value) ? 2 : (
(std::is_same<T, RGB32>::value) ? 3 : (
(std::is_same<T, RGB64>::value) ? 4 : (
(std::is_same<T, RGBf>::value) ? 5 : (
(std::is_same<T, HSV>::value) ? 6 : 0)))))

The documentation for this struct was generated from the following file: