Home | History | Annotate | Download | only in main

Lines Matching refs:GLfloat

42 /** Convert GLubyte in [0,255] to GLfloat in [0.0,1.0] */
43 extern GLfloat _mesa_ubyte_to_float_color_tab[256];
46 /** Convert GLfloat in [0.0,1.0] to GLubyte in [0,255] */
50 /** Convert GLbyte in [-128,127] to GLfloat in [-1.0,1.0] */
53 /** Convert GLfloat in [-1.0,1.0] to GLbyte in [-128,127] */
57 /** Convert GLbyte in [-128,127] to GLfloat in [-1.0,1.0], texture/fb data */
60 /** Convert GLfloat in [-1.0,1.0] to GLbyte in [-128,127], texture/fb data */
64 /** Convert GLushort in [0,65535] to GLfloat in [0.0,1.0] */
65 #define USHORT_TO_FLOAT(S) ((GLfloat) (S) * (1.0F / 65535.0F))
67 /** Convert GLfloat in [0.0,1.0] to GLushort in [0, 65535] */
71 /** Convert GLshort in [-32768,32767] to GLfloat in [-1.0,1.0] */
74 /** Convert GLfloat in [-1.0,1.0] to GLshort in [-32768,32767] */
78 /** Convert GLshort in [-32768,32767] to GLfloat in [-1.0,1.0], texture/fb data */
81 /** Convert GLfloat in [-1.0,1.0] to GLshort in [-32768,32767], texture/fb data */
85 /** Convert GLuint in [0,4294967295] to GLfloat in [0.0,1.0] */
86 #define UINT_TO_FLOAT(U) ((GLfloat) ((U) * (1.0F / 4294967295.0)))
88 /** Convert GLfloat in [0.0,1.0] to GLuint in [0,4294967295] */
92 /** Convert GLint in [-2147483648,2147483647] to GLfloat in [-1.0,1.0] */
93 #define INT_TO_FLOAT(I) ((GLfloat) ((2.0F * (I) + 1.0F) * (1.0F/4294967294.0)))
95 /** Convert GLfloat in [-1.0,1.0] to GLint in [-2147483648,2147483647] */
102 /** Convert GLfloat in [-1.0,1.0] to GLint64 in [-(1<<63),(1 << 63) -1] */
106 /** Convert GLint in [-2147483648,2147483647] to GLfloat in [-1.0,1.0], texture/fb data */
109 /** Convert GLfloat in [-1.0,1.0] to GLint in [-2147483648,2147483647], texture/fb data */
171 /** Stepping a GLfloat pointer by a byte stride */
172 #define STRIDE_F(p, i) (p = (GLfloat *)((GLubyte *)p + i))
177 /** Stepping a GLfloat[4] pointer by a byte stride */
178 #define STRIDE_4F(p, i) (p = (GLfloat (*)[4])((GLubyte *)p + i))
248 memcpy(DST, SRC, sizeof(GLfloat) * 4); \
386 const GLfloat *_tmp = (SRC); \
507 const GLfloat *_tmp = (SRC); \
600 GLfloat inf = UBYTE_TO_FLOAT( inub ); \
601 GLfloat outf = UBYTE_TO_FLOAT( outub ); \
602 GLfloat dstf = LINTERP( t, outf, inf ); \
608 GLfloat inf = CHAN_TO_FLOAT( inc ); \
609 GLfloat outf = CHAN_TO_FLOAT( outc ); \
610 GLfloat dstf = LINTERP( t, outf, inf ); \
615 dstui = (GLuint) (GLint) LINTERP( (t), (GLfloat) (outui), (GLfloat) (inui) )
699 GLfloat len = (GLfloat) LEN_SQUARED_3FV(V); \
702 (V)[0] = (GLfloat) ((V)[0] * len); \
703 (V)[1] = (GLfloat) ((V)[1] * len); \
704 (V)[2] = (GLfloat) ((V)[2] * len); \
717 #define ENUM_TO_FLOAT(E) ((GLfloat)(GLint)(E))