Home | History | Annotate | Download | only in main

Lines Matching refs:GLushort

67 /** Convert GLushort in [0,65535] to GLfloat in [0.0,1.0] */
70 /** Convert GLfloat in [0.0,1.0] to GLushort in [0, 65535] */
126 #define BYTE_TO_USHORT(b) ((b) < 0 ? 0 : ((GLushort) (((b) * 65535) / 255)))
127 #define UBYTE_TO_USHORT(b) (((GLushort) (b) << 8) | (GLushort) (b))
128 #define SHORT_TO_USHORT(s) ((s) < 0 ? 0 : ((GLushort) (((s) * 65535 / 32767))))
129 #define INT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 15)))
130 #define UINT_TO_USHORT(i) ((i) < 0 ? 0 : ((GLushort) ((i) >> 16)))
132 us = ( (GLushort) F_TO_I( CLAMP((f), 0.0F, 1.0F) * 65535.0F) )
134 us = ( (GLushort) F_TO_I( (f) * 65535.0F) )