Lines Matching defs:c
71 #define CHAN_TO_UBYTE(c) (c) argument
72 #define CHAN_TO_USHORT(c) (((c) << 8) | (c)) argument
73 #define CHAN_TO_SHORT(c) (((c) << 7) | ((c) >> 1)) argument
74 #define CHAN_TO_FLOAT(c) UBYTE_TO_FLOAT(c) argument
76 #define CLAMPED_FLOAT_TO_CHAN(c, f) CLAMPED_FLOAT_TO_UBYTE(c, f) argument
77 #define UNCLAMPED_FLOAT_TO_CHAN(c, f) UNCLAMPED_FLOAT_TO_UBYTE(c, f) argument
83 #define CHAN_TO_UBYTE(c) ((c) >> 8) argument
84 #define CHAN_TO_USHORT(c) (c) argument
85 #define CHAN_TO_SHORT(c) ((c) >> 1) argument
86 #define CHAN_TO_FLOAT(c) ((GLfloat) ((c) * (1.0 / CHAN_MAXF))) argument
88 #define CLAMPED_FLOAT_TO_CHAN(c, f) CLAMPED_FLOAT_TO_USHORT(c, f) argument
89 #define UNCLAMPED_FLOAT_TO_CHAN(c, f) UNCLAMPED_FLOAT_TO_USHORT(c, f) argument
95 #define CHAN_TO_UBYTE(c) FLOAT_TO_UBYTE(c) argument
96 #define CHAN_TO_USHORT(c) ((GLushort) (CLAMP((c), 0.0f, 1.0f) * 65535.0)) argument
97 #define CHAN_TO_SHORT(c) ((GLshort) (CLAMP((c), 0.0f, 1.0f) * 32767.0)) argument
98 #define CHAN_TO_FLOAT(c) (c) argument
100 #define CLAMPED_FLOAT_TO_CHAN(c, f) c = (f) argument
101 #define UNCLAMPED_FLOAT_TO_CHAN(c, f) c = (f) argument