Basic rough translation to c++.
Removed stdbool.h.
Started converting parts into classes.
Made virtual functions for callbacks.
Replaced setCoordinateSystem and 2d/3d world with setOrthogonal and setPerspective.

Plus some tidying.
Added getDisplayAspectRatio.
Removed concept of userData.