26 template<
typename S,
typename D>
27 static inline D unitConvert(
S s)
83 : r(unitConvert<U,
T>(r)), g(unitConvert<U,
T>(g)),
84 b(unitConvert<U,
T>(b)), a(unitConvert<U,
T>(a))
100 r = unitConvert<U,T>(s.
r);
101 g = unitConvert<U,T>(s.
g);
102 b = unitConvert<U,T>(s.
b);
103 a = unitConvert<U,T>(s.
a);
120 UT_HSVA(
unsigned short ch,
unsigned short cs,
char cv,
char ca)
121 {
h = (short)ch; s = (short)cs;
122 v = (
unsigned short)((cv << 8) | cv);
123 a = (
unsigned short)((ca << 8) | cv); }
126 unsigned short cv,
unsigned short ca)
127 {
h = (short)ch; s = (short)cs;
v = cv;
a = ca; }
129 UT_HSVA(
const UT_RGBA &rgba) { *
this = rgba; }
130 UT_HSVA(
const UT_BIG_RGBA &rgba) { *
this = rgba; }
142 static int enableAlphaDivide(
int state);
149 static char hsvDoAlphaDivide;
UT_BIG_BUMP(long u, long v)
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
UT_HSVA(const UT_BIG_RGBA &rgba)
UT_RGBAT(U r, U g, U b, U a)
UT_RGBAT & operator=(const UT_RGBAT &s)=default
GLboolean GLboolean GLboolean GLboolean a
UT_HSVA(unsigned short ch, unsigned short cs, char cv, char ca)
UT_HSVA(const UT_RGBA &rgba)
UT_Vector3T< T > SYSclamp(const UT_Vector3T< T > &v, const UT_Vector3T< T > &min, const UT_Vector3T< T > &max)
UT_RGBAT(const UT_RGBAT< U > &s)
UT_RGBAT< uint8 > UT_RGBA
UT_RGBAT< uint16 > UT_BIG_RGBA
GLboolean GLboolean GLboolean b
fpreal32 SYSrint(fpreal32 val)
UT_RGBAT(T r, T g, T b, T a)
UT_BUMP(short u, short v)
GLfloat GLfloat GLfloat GLfloat h
UT_HSVA(unsigned short ch, unsigned short cs, unsigned short cv, unsigned short ca)
UT_RGBAT< fpreal32 > UT_FRGBA
LeafData & operator=(const LeafData &)=delete
UT_RGBAT< T > & operator=(const UT_RGBAT< U > &s)
#define SYS_UNIMPLEMENTED_TEMPLATE(T)
static int getAlphaDivide()
UT_HSVA(const UT_HSVA &hsva)