type TFixed = type Integer;
type PFixed = ^TFixed;
In order to accelerate some calculations, Graphics32 extensively uses fixed point arithmetics, which is mostly based on TFixed type:
TFixed is a 32-bit fixed point value in 16.16 format, that is 16 bits represent signed integer part and 16 bits represent unsigned fractional part. This format is bitwise-compatible with TFixed type from the Windows.pas unit, except it does not use a record to store the value, which allows for faster function parameter passing and faster value copying and assignment.
Conversion from floating to fixed point is very simple:
Fixed := Round(Single * 65536);
[See Also] Fixed Point Math