ReactOS 0.4.16-dev-59-gd481587
|
Go to the source code of this file.
Macros | |
#define | FIXED_ONE 0x00000800 |
#define | FIXED_HALF 0x00000400 |
#define | FIXED_FRAC_MASK 0x000007FF |
#define | FIXED_INT_MASK (~FIXED_FRAC_MASK) |
#define | FIXED_EPSILON 1 |
#define | FIXED_SCALE 2048.0f |
#define | FIXED_SHIFT 11 |
#define | FloatToFixed(X) ((GLfixed) ((X) * FIXED_SCALE)) |
#define | IntToFixed(I) ((I) << FIXED_SHIFT) |
#define | FixedToInt(X) ((X) >> FIXED_SHIFT) |
#define | FixedToUns(X) (((unsigned int)(X)) >> 11) |
#define | FixedCeil(X) (((X) + FIXED_ONE - FIXED_EPSILON) & FIXED_INT_MASK) |
#define | FixedFloor(X) ((X) & FIXED_INT_MASK) |
#define | FixedToFloat(X) ((X) * 0.00048828125f) |
#define | PosFloatToFixed(X) FloatToFixed(X) |
#define | SignedFloatToFixed(X) FloatToFixed(X) |
Typedefs | |
typedef int | GLfixed |
#define FIXED_INT_MASK (~FIXED_FRAC_MASK) |
#define FixedCeil | ( | X | ) | (((X) + FIXED_ONE - FIXED_EPSILON) & FIXED_INT_MASK) |