Searched defs:FLOAT_TO_SHORT (Results 1 - 2 of 2) sorted by relevance

/vbox/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/main/
H A Dmacros.h64 #define FLOAT_TO_SHORT(X) ( (((GLint) (65535.0F * (X))) - 1) / 2 ) macro
/vbox/src/VBox/GuestHost/OpenGL/util/
H A Dpixel.c184 #define FLOAT_TO_SHORT(f) ((GLshort) ((f) * 32768.0)) macro
951 sDst[i] = FLOAT_TO_SHORT(tmpRow[i]);
955 sDst[i] = FLOAT_TO_SHORT(tmpRow[i]);
1014 sDst[i] = FLOAT_TO_SHORT(tmpRow[i*4+index]);
1061 sDst[i*2+0] = FLOAT_TO_SHORT(tmpRow[i*4+0]);
1062 sDst[i*2+1] = FLOAT_TO_SHORT(tmpRow[i*4+3]);
1137 sDst[i*3+r] = FLOAT_TO_SHORT(tmpRow[i*4+0]);
1138 sDst[i*3+1] = FLOAT_TO_SHORT(tmpRow[i*4+1]);
1139 sDst[i*3+b] = FLOAT_TO_SHORT(tmpRow[i*4+2]);
1255 sDst[i*4+r] = FLOAT_TO_SHORT(tmpRo
[all...]

Completed in 49 milliseconds